Plugin is throwing a PHP error in the admin area

Home Forums Calendar Products Events Calendar PRO Plugin is throwing a PHP error in the admin area

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1324270
    timwakeling
    Participant

    Hi – using the Events Calendar Pro 4.5.8 and The Events Calendar 4.4.14, I am getting 10 instances of the following error at the top of my Plugins pag in the admin:

    Notice: is_current_page was called incorrectly. Function was called before it is possible to accurately determine what the current page is. Please see Debugging in WordPress for more information. (This message was added in version 4.5.6.) in wp-includes/functions.php on line 4139

    This error only appears when The Events Calendar is enabled, and appears even if other plugins are disabled. We’ve been using the plugin successfully until now without this error. I’m guessing it won’t show on the production site without Debug enabled, but I still would like to sort it.

    A search of your code suggests your plugin calls the is_current_page() function on lines 91 and 103 of the-events-calendar/common/src/Tribe/App_Shop.php and line 109 of the-events-calendar/common/src/Tribe/Log/Admin.php.

    Any thoughts? Thanks! 🙂

    Tim

    #1325014
    Jennifer
    Keymaster

    Hi Tim,

    Thanks for reaching out! I can’t say I’ve seen this particular error in our plugins before, and I wasn’t able to recreate it on my end.

    Did this start happening after an update? I would recommend reinstalling the plugins to see if that helps (you can do so by following this guide).

    Also, have you made any customizations to the plugin?

    Thanks,

    Jennifer

    #1325429
    timwakeling
    Participant

    Thanks for your reply. Oddly enough, although it was consistently appearing when I wrote this, I can’t reproduce it now either. In answer to your questions, it did appear after an update, including reinstall of the plugins, and they weren’t customised. But I’ll close this for now and re-open if I see it again…

    Tim

    #1325475
    Jennifer
    Keymaster

    Hi Tim,

    I’m glad to hear this is resolved. Please do open a new thread if this issue appears again!

    Thanks,

    Jennifer

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Plugin is throwing a PHP error in the admin area’ is closed to new replies.