• Resolved stevoli

    (@stevoli)


    After updating to the latest TEC, several of my websites hard crashed, throwing PHP fatal errors. The home pages won’t even come up, just an error box with: “There has been a critical error on this website.”

    The following error is in the event logs:

    [06-Sep-2022 19:42:26 UTC] PHP Fatal error:  Uncaught Error: Call to a member function is_main_query() on null in /wp-content/plugins/event-tickets/common/src/Tribe/Context/locations.php:50
    Stack trace:
    #0 /wp-content/plugins/event-tickets/common/src/Tribe/Context.php(820): Tribe__Context::{closure}()
    #1 /wp-content/plugins/event-tickets/common/src/Tribe/Context.php(386): Tribe__Context->func(Array, false)
    #2 /wp-content/plugins/event-tickets/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))
    #5 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #6 /wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #7  in /wp-content/plugins/event-tickets/common/src/Tribe/Context/locations.php on line 50

    Disabling the WooCommerce Memberships plugin lets the site come up, so there’s something conflicting there. Everything worked fine before this update. I had to roll back to yesterdays backup to fix everything.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter stevoli

    (@stevoli)

    Also since I have event tickets installed, I disabled it and get the same error from the locations.php file in the TEC folder.

    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

    Exactly the same problem here.

    Experiencing the same issue as well.

    Thread Starter stevoli

    (@stevoli)

    The issue was found is being fixed in the next update, hopefully it’ll go live soon.

    https://github.com/the-events-calendar/tribe-common/pull/1807

    Ditto

    This happened on one of my client sites that also has WooCommerce Memberships running.

    My issue seems to be a conflict with MemberPress. The site crashes unless I deactivate either Memberpress or Event Calendar.

    Same here. I’m using Memberpress and have deactivated all my Events Calendar plugins for my site to work. I have put in a support ticket to the team.

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi everyone.

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

    As @stevoli mentioned above 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.

    I just saw the 6.0.0.1 update and installed it and still see this issue. This issue is affecting a number of my sites.

    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 Gladys

    (@greventscalendar)

    @lzevon I will make sure to report that you are still seeing the issue after the update.

    SourceView

    (@virtality-marketing-solutions)

    @greventscalendar we are still seeing issues with Events Calendar and MemberPress, when will a fix be released?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Multiple Websites Crashing after update’ is closed to new replies.