xpertbot / craft-wheelform

Craft CMS 4 Form with Database integration
MIT License
66 stars 32 forks source link

Plain "error" message when editing/creating forms #271

Closed sgorski89 closed 2 years ago

sgorski89 commented 2 years ago

Hey there,

I've just installed the plugin and after configuring the from address and success message, I cannot create forms or edit the default form the panel. When I try to edit or update something the panel just shows a general "error" message when saving.

This happens in in my dev setup as well as in the live system. I'm using Craft CMS 4.1.4.1.

Any ideas?

Bildschirmfoto 2022-07-25 um 12 28 57
funkysoul commented 2 years ago

Same happening to me. Latest Craft Version

xpertbot commented 2 years ago

I cannot replicate this issue on a clean install of Craft 4.2.0.2. Can you provide a list of plugins you're using that could conflict with WheelForm?

funkysoul commented 2 years ago

composer.json packages in use. Craft Pro 4.2.0.2

"born05/craft-twofactorauthentication": "3.0.1", "carlcs/craft-redactorcustomstyles": "4.0.2", "craftcms/cms": "4.2.0.2", "craftcms/redactor": "3.0.2", "doublesecretagency/craft-cpcss": "2.5.0", "mmikkel/cp-clearcache": "^1.2", "mmikkel/cp-field-inspect": "^1.4", "nystudio107/craft-cookies": "^4.0", "nystudio107/craft-emptycoalesce": "4.0.0-beta.1", "nystudio107/craft-minify": "4.0.0-beta.2", "nystudio107/craft-retour": "^4.0", "nystudio107/craft-seomatic": "4.0.7", "nystudio107/craft-vite": "4.0.2", "putyourlightson/craft-blitz-recommendations": "^2.1", "putyourlightson/craft-sprig": "2.1.0", "sebastianlenz/linkfield": "2.1.3-rc", "spicyweb/craft-embedded-assets": "3.0.4", "spicyweb/craft-neo": "3.2.3", "utakka/redactor-anchors": "^1.4", "verbb/cp-nav": "4.0.5", "verbb/navigation": "2.0.3", "verbb/super-table": "3.0.0", "vlucas/phpdotenv": "^5.4.0", "xpertbot/craft-wheelform": "3.1.0"

xpertbot commented 2 years ago

If you open the Dev tools, are you able to see any error in the console log? Otherwise, if you change your .env file to CRAFT_ENVIRONMENT to dev you should be able to go to storage/logs/phperrors.log and try to find anything wheelform related in there.

xpertbot commented 2 years ago

I installed all the plugins in that composer file, I was able to save and create new forms. I tested on the latest 4.2.0.2 Craft version. Both on PHP 8.0 and PHP 8.1. I will wait for your error report to see if you can find any information on this. Thank you for the report.

funkysoul commented 2 years ago

Nothing in DevTools Console (neither failed requests in the network tab) phperrors.log is "empty" (well not quite empty but nothing related to wheelform) very weird.. I've also switched from 8.1 down to 8.0.2 but same result

Update I've just disabled all plugins, running only wheelform.. same issue, nothing in .log nothing in console, only the Error Notification

xpertbot commented 2 years ago

Then is not related to the plug-in. Make a new request, try to duplicate the error. Then look in the phperror file and post what you find.

xpertbot commented 2 years ago

Nothing in DevTools Console (neither failed requests in the network tab) phperrors.log is "empty" (well not quite empty but nothing related to wheelform) very weird.. I've also switched from 8.1 down to 8.0.2 but same result

Update I've just disabled all plugins, running only wheelform.. same issue, nothing in .log nothing in console, only the Error Notification

Can the form update or save even with the error, as in are the modifications to the form persistent between reloads. I wonder if it’s a conflict between JS libraries.

xpertbot commented 2 years ago

I found this in the Craft Changelog "Fixed a bug where the Craft.cp.setSiteId() JavaScript method wasn’t updating Craft.siteId, or the base URLs used by Craft.getActionUrl(), Craft.getCpUrl(), and Craft.getUrl()." This seems to be related to multisites, is your site a multi site environment? that could be the problem since the Form Vue component uses Craft.getCPURL() to make the requests.