• Resolved sussexbusinesssolutions

    (@sussexbusinesssolutions)


    Hi,

    We are experiencing a conflict with the cookie plugin when it comes to wp-cron.php running – the following error is what occurs when it runs;

    PHP Fatal error: Cannot declare class Cookie_Law_Info_Cookie_Scanner_Ajax, because the name is already in use in /home/sites/12b/8/85078e3ea2/public_html/wp-content/plugins/cookie-law-info/admin/modules/cookie-scaner/classes/class-cookie-law-info-cookie-scanner-ajax.php on line 8

    Are you able to look into this at all?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WebToffee

    (@webtoffee)

    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 3 years, 9 months ago by sturtus.
    Thread Starter sussexbusinesssolutions

    (@sussexbusinesssolutions)

    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.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @sussexbusinesssolutions,

    Can you check if you too are having the same issue as @sturtus ?

    Plugin Author WebToffee

    (@webtoffee)

    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.

    Thread Starter sussexbusinesssolutions

    (@sussexbusinesssolutions)

    We were making you aware of an issue. We chose to use another plugin without the problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WP Cron Compatibility Issue’ is closed to new replies.