• Resolved Michael C

    (@lucenadigital)


    After updating to v 6.0.0, website shows critical error.

    atal error: Uncaught Error: Call to a member function is_main_query() on null in .../wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php:50 Stack trace: #0 /.../wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(820): Tribe__Context::{closure}() #1 ..../plugins/the-events-calendar/common/src/Tribe/Context.php(386): Tribe__Context->func(Array, false) #2 ..../wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(1524): Tribe__Context->get('is_main_query', false) #3 /..../wp-content/plugins/the-events-calendar/src/Tribe/Query.php(35): Tribe__Context->is('is_main_query') #4 .../wp-includes/class-wp-hook.php(307): Tribe__Events__Query::parse_query(Object(WP_Query) in ..../wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php on line 50

Viewing 5 replies - 1 through 5 (of 5 total)
  • This error affected my site too. I had to manually delete the plugin directory to be able to access the site / login.

    Same for me.

    [07-Sep-2022 06:47:55 UTC] PHP Fatal error:  Uncaught Error: Call to a member function is_main_query() on null in .../wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php:50
    Stack trace:
    #0 .../wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(820): Tribe__Context::{closure}()
    #1 .../wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(386): Tribe__Context->func()
    #2 .../wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(1524): Tribe__Context->get()
    #3 .../wp-content/plugins/the-events-calendar/src/Tribe/Query.php(35): Tribe__Context->is()
    #4 .../wp-includes/class-wp-hook.php(307): Tribe__Events__Query::parse_query()
    #5 .../wp-includes/ in .../wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php on line 50
    • This reply was modified 2 years, 6 months ago by solitaireworks. Reason: Added Error message
    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @solitaireworks @weeix @lucenadigital .

    I am so sorry you all are facing this problem. Thanks for reporting it to us so quickly.

    We are working on a release with the fix for the problem, and we just want to ensure it covers all the scenarios that this is happening.

    Thanks for your patience. The release will be available later today.

    Plugin Support Gladys

    (@greventscalendar)

    We wanted to let you know with our latest release of The Events Calendar 6.0.0.1; we resolved an issue that prevents E_ERROR from showing up when calling tribe_context( )->is( is_main_query ) too early in the execution in our common libraries. Be sure to review our full Release Notes for more details and update your plugin at your earliest convenience.

    As always, we suggest testing updates on a staging site first and having a recent backup, but it should all be smooth sailing. If you implemented any workarounds, you may remove them after updating the plugin.

    Please let us know if you still have issues after updating to the latest releases.

    Have a great day!

    Plugin Support Abz

    (@abzlevelup)

    Hey @lucenadigital, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Critical Error after Update’ is closed to new replies.