I keep getting these annoying PHP deprecated warnings whenever someone submits my form. The error log shows messages about dynamic properties being created in the file upload class. This happens every time a user tries to upload a file through my form. The warnings point to some abstract class file in the Everest Forms plugin folder. Has anyone else run into this issue? I’m not sure if it’s something I did wrong in my form setup or if it’s a plugin compatibility problem. The form still works but these error messages are filling up my debug log. Any ideas on how to fix this?
Check for a newer Everest Forms version first - they might’ve already patched this. I had the same issue last week and updating fixed most warnings. If that doesn’t work, you can add #[AllowDynamicProperties] to the problematic class, but you’ll need to modify plugin files directly. That’s not great since updates will wipe your changes.
Had this exact problem two months ago on a client site with PHP 8.1. The plugin creates properties dynamically without declaring them properly in the class. I temporarily downgraded to PHP 7.4 while waiting for a patch, but that’s not always possible depending on your host. Another fix is creating a custom mu-plugin that hooks into form submission and initializes the problematic properties before they’re created dynamically. Check your error log for the specific property names and declare them in a wrapper class. I also found that disabling certain file upload validation features cut down on these warnings, though it’s not great for security. The core functionality still works fine - it’s mostly just annoying log spam rather than something that breaks the site.
Experiencing similar warnings is unfortunately common with the transition to PHP 8.2. The deprecated property warnings arise because the newer version enforces stricter standards around dynamic properties. A temporary solution to mitigate these warnings is to adjust your wp-config.php file to include error_reporting(E_ALL & ~E_DEPRECATED);. This will suppress the deprecation notices until the plugin authors provide a fix. It’s essential, however, to avoid using such adjustments on live environments. In the long run, checking for updates from Everest Forms is vital, as many developers are releasing compatibility patches for PHP 8.2. If updates are lacking, reaching out to their support team can also provide assistance, especially since many users are encountering this issue.