• Hi

    I have your plugin on several websites. I have one in particular that is showing a warning error after the latest update. I have had to rollback the plugin to remove the warning but have left it on the staging site for reference.

    The warning is “Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Cookie_Notice’ does not have a method ‘add_cookie_notice’ in /home/chillija/staging/wp-includes/class-wp-hook.php on line 287”

    Could you please advise why this is showing on one site but not others?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author dFactory

    (@dfactory)

    We’ve already found that that and it’s not an issue with Cookie Notice but a different plugin trying to use it’s features without checking first if the method exists.

    Technically speaking 2.0 release was a major update and the ‘add_cookie_notice’ method is no longer available in Cookie_Notice class but in Cookie_Notice_Frontend class and should called differently, like Cookie_Notice()->frontend->add_cookie_notice()

    Question is what plugin on your site makes tries to use that method.

    Thread Starter davidchapman1

    (@davidchapman1)

    Hi

    Thanks for the reply.

    I would assume you guys have a list of plugins that are causing conflicts with your plugin whilst you are running tests before any updates. If you could provide the list of plugins you have identified I would be grateful.

    Thanks

    Thread Starter davidchapman1

    (@davidchapman1)

    Hi

    I have been looking into this and have deactivated all other plugins as well as removed all functions from the website. I have also switched themes. Nothing changes the message is still there.

    Please advise?

    Plugin Author dFactory

    (@dfactory)

    @davidchapman1

    The issue does not come from our plugin. It’s coming form a different plugin that’s been using (in an improper way) one of Cookie Notice methods (add_cookie_notice).

    What theme and plugins are you using on your site?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WARNING after update?’ is closed to new replies.