Hi @sussexbusinesssolutions,
Could you please explain how to replicate this error so that we can check accordingly and have some insight into the issue?
We are suffering a similar PHP error, however it happens whenever we simply Network Activate the plugin.
PHP Fatal error: Cannot declare class Cookie_Law_Info_Cookie_Scanner_Ajax, because the name is already in use in /sites/ketchumcorpstg/wp-content/plugins/cookie-law-info/admin/modules/cookie-scaner/classes/class-cookie-law-info-cookie-scanner-ajax.php on line 546
Fatal error: Cannot declare class Cookie_Law_Info_Cookie_Scanner_Ajax, because the name is already in use in /sites/ketchumcorpstg/wp-content/plugins/cookie-law-info/admin/modules/cookie-scaner/classes/class-cookie-law-info-cookie-scanner-ajax.php on line 546
WordPress 5.7.2
WordPress multisite from Network console
PHP 7.3
Running on WP Engine
I deleted all other plugins and switched to the TwentyTwentyOne theme, and still seeing this error in PHP logs.
-
This reply was modified 4 years, 11 months ago by
sturtus.
Install your plugin and then hit the wp-cron.php file via a server cron or directly. You will see the issue.
We found the issue. We were running an extra do_action(‘init’) at the end of functions.php.
Hi @sussexbusinesssolutions,
Can you check if you too are having the same issue as @sturtus ?
Hi @sussexbusinesssolutions,
It’s been a while since we heard from you, so we are marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please open up a new topic or follow-up and we’ll be happy to help out.
We were making you aware of an issue. We chose to use another plugin without the problem.