• Resolved nicsevic

    (@nicsevic)


    Hi there,

    I’m reaching out on behalf of WordPress.com. We have had multiple reports of fatal errors with both the The Events Calendar (6.0.0) and Event Tickets (5.5.0) plugins. These errors seem to be related to site specific settings or content but it’s not clear what.

    I will include some of the errors we are seeing below but if you can please reach out to [email protected] and ask for me (Nic with Reactor) I’m happy to try and provide additional information to help you resolve the errors.

    **The Events Calendar**
    on PHP 7.4 sites

    PHP Fatal error:  Uncaught Error: Call to a member function is_main_query() on null in /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php:50
    Stack trace:
    #0 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(820): Tribe__Context::{closure}()
    #1 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(386): Tribe__Context->func(Array, false)
    #2 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(1524): Tribe__Context->get('is_main_query', false)
    #3 /srv/htdocs/wp-content/plugins/the-events-calendar/src/Tribe/Query.php(35): Tribe__Context->is('is_main_query')
    #4 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): Tribe__Events__Query::parse_query(Object(WP_Query))
    #5 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #6 /wordpress/core/6.0.2/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #7 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(1104): do_action_ref_array('parse_query', Array)
    #8 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(1792): WP_Query->parse_query()
    #9 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(3586): WP_Query->get_posts()
    #10 /wordpress/core/6.0.2/wp-includes/post.php(2410): WP_Query->query(Array)
    #11 /srv/htdocs/wp-content/plugins/memberpress/app/lib/MeprCptModel.php(152): get_posts(Array)
    #12 /srv/htdocs/wp-content/plugins/memberpress/app/controllers/MeprRemindersCtrl.php(56): MeprCptModel::all('MeprReminder')
    #13 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): MeprRemindersCtrl->schedule_reminders('')
    #14 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #15 /wordpress/core/6.0.2/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #16 /wordpress/core/6.0.2/wp-settings.php(461): do_action('plugins_loaded')
    #17 /srv/htdocs/wp-config.php(81): require_once('/wordpress/core...')
    #18 /wordpress/core/6.0.2/wp-load.php(55): require_once('/srv/htdocs/wp-...')
    #19 /wordpress/core/6.0.2/wp-blog-header.php(13): require_once('/wordpress/core...')
    #20 /wordpress/core/6.0.2/index.php(17): require('/wordpress/core...')
    #21 {main}
      thrown in /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php on line 50
    PHP Fatal error:  Uncaught Error: Call to a member function is_main_query() on null in /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php:50
    Stack trace:
    #0 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(820): Tribe__Context::{closure}()
    #1 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(386): Tribe__Context->func(Array, false)
    #2 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(1524): Tribe__Context->get('is_main_query', false)
    #3 /srv/htdocs/wp-content/plugins/the-events-calendar/src/Tribe/Query.php(35): Tribe__Context->is('is_main_query')
    #4 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): Tribe__Events__Query::parse_query(Object(WP_Query))
    #5 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #6 /wordpress/core/6.0.2/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #7 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(1104): do_action_ref_array('parse_query', Array)
    #8 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(1792): WP_Query->parse_query()
    #9 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(3586): WP_Query->get_posts()
    #10 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(3718): WP_Query->query(Array)
    #11 /srv/htdocs/wp-content/plugins/mp3-music-player-by-sonaar/admin/class-sonaar-music-admin.php(3006): WP_Query->__construct(Array)
    #12 /srv/htdocs/wp-content/plugins/mp3-music-player-by-sonaar/admin/class-sonaar-music-admin.php(3028): Sonaar_Music_Admin->setPlaylistCPTName()
    #13 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): Sonaar_Music_Admin->initCPT('')
    #14 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #15 /wordpress/core/6.0.2/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #16 /srv/htdocs/wp-content/plugins/mp3-music-player-by-sonaar/admin/library/Shortcode_Button/shortcode-button.php(116): do_action('shortcode_butto...')
    #17 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): Shortcode_Button_107::fire_hook('')
    #18 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #19 /wordpress/core/6.0.2/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #20 /wordpress/core/6.0.2/wp-settings.php(461): do_action('plugins_loaded')
    #21 /srv/htdocs/wp-config.php(81): require_once('/wordpress/core...')
    #22 /wordpress/core/6.0.2/wp-load.php(55): require_once('/srv/htdocs/wp-...')
    #23 /wordpress/core/6.0.2/wp-blog-header.php(13): require_once('/wordpress/core...')
    #24 /wordpress/core/6.0.2/index.php(17): require('/wordpress/core...')
    #25 {main}
      thrown in /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php on line 50
    PHP Fatal error:  Uncaught Error: Call to a member function is_main_query() on null in /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php:50
    Stack trace:
    #0 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(820): Tribe__Context::{closure}()
    #1 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(386): Tribe__Context->func(Array, false)
    #2 /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php(1524): Tribe__Context->get('is_main_query', false)
    #3 /srv/htdocs/wp-content/plugins/the-events-calendar/src/Tribe/Query.php(35): Tribe__Context->is('is_main_query')
    #4 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): Tribe__Events__Query::parse_query(Object(WP_Query))
    #5 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #6 /wordpress/core/6.0.2/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #7 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(1104): do_action_ref_array('parse_query', Array)
    #8 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(1792): WP_Query->parse_query()
    #9 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(3586): WP_Query->get_posts()
    #10 /wordpress/core/6.0.2/wp-includes/class-wp-query.php(3718): WP_Query->query(Array)
    #11 /srv/htdocs/wp-content/plugins/mp3-music-player-by-sonaar/admin/class-sonaar-music-admin.php(3006): WP_Query->__construct(Array)
    #12 /srv/htdocs/wp-content/plugins/mp3-music-player-by-sonaar/admin/class-sonaar-music-admin.php(3028): Sonaar_Music_Admin->setPlaylistCPTName()
    #13 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): Sonaar_Music_Admin->initCPT('')
    #14 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #15 /wordpress/core/6.0.2/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #16 /srv/htdocs/wp-content/plugins/mp3-music-player-by-sonaar/admin/library/Shortcode_Button/shortcode-button.php(116): do_action('shortcode_butto...')
    #17 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): Shortcode_Button_107::fire_hook('')
    #18 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #19 /wordpress/core/6.0.2/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #20 /wordpress/core/6.0.2/wp-settings.php(461): do_action('plugins_loaded')
    #21 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1317): require('/wordpress/core...')
    #22 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1235): WP_CLI\Runner->load_wordpress()
    #23 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #24 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
    #25 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
    #26 phar:///usr/local/bin/wp-cli/php/boot-phar.php(11): include('phar:///usr/loc...')
    #27 /usr/local/bin/wp-cli(4): include('phar:///usr/loc...')
    #28 {main}
      thrown in /srv/htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Context/locations.php on line 50

    **Event Tickets**
    On PHP 7.4

    PHP Fatal error:  Uncaught TypeError: Argument 1 passed to TEC\Tickets\Custom_Tables\V1\Provider::prevent_tickets_on_recurring_events() must be of the type string, null given, called in /wordpress/core/6.0.2/wp-includes/class-wp-hook.php on line 307 and defined in /srv/htdocs/wp-content/plugins/event-tickets/src/Tickets/Custom_Tables/V1/Provider.php:80
    Stack trace:
    #0 /wordpress/core/6.0.2/wp-includes/class-wp-hook.php(307): TEC\Tickets\Custom_Tables\V1\Provider->prevent_tickets_on_recurring_events(NULL)
    #1 /wordpress/core/6.0.2/wp-includes/plugin.php(191): WP_Hook->apply_filters(NULL, Array)
    #2 /wordpress/core/6.0.2/wp-admin/admin-header.php(242): apply_filters('admin_body_clas...', '')
    #3 /wordpress/core/6.0.2/wp-admin/themes.php(246): require_once('/wordpress/core...')
    #4 {main}
      thrown in /srv/htdocs/wp-content/plugins/event-tickets/src/Tickets/Custom_Tables/V1/Provider.php on line 80 

    on php 8.0

    PHP Fatal error:  Uncaught Error: Failed opening required '/srv/htdocs/wp-content/plugins/event-tickets/src/functions/php-min-version.php' (include_path='/:.') in /srv/htdocs/wp-content/plugins/event-tickets/event-tickets.php:40
    Stack trace:
    #0 /wordpress/core/6.0.1/wp-settings.php(428): include_once()
    #1 /srv/htdocs/wp-config.php(83): require_once('/wordpress/core...')
    #2 /wordpress/core/6.0.1/wp-load.php(55): require_once('/srv/htdocs/wp-...')
    #3 /wordpress/core/6.0.1/wp-blog-header.php(13): require_once('/wordpress/core...')
    #4 /wordpress/core/6.0.1/index.php(17): require('/wordpress/core...')
    #5 {main}
      thrown in /srv/htdocs/wp-content/plugins/event-tickets/event-tickets.php on line 40
Viewing 15 replies - 1 through 15 (of 16 total)
  • I have the same issue.
    I updated today to 6.0.0 – the user interface seems to work fine, but I cannot add a new event or edit an event.

    I am happy to provide my data – if needed, and there is no risk in sharing it.

    UPDATE:
    – all of a sudden, I could not add a new course to my Learndash LMS or edit a course.
    – so I all plugins that are not viable for the website users.
    – It worked again. The events calendar without pro worked. Learndash functioned.
    – I reactivated everything except The Events Calendar Pro. Everything fine.
    – I activated The Events Calendar Pro 6.0.0. BOOM – the error was there again, including the error for editing and creating Learndash courses.

    … so for some reason, The Events Calendar Pro Plugin causes a fatal error.

    me too….

    thanx

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @simonetat @christianwozabal @nicsevic.

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

    As @stevoli mentioned, we are working on a release with the fix for the problem, and we just want to make sure it covers all the scenarios that this is happening.

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

    I am seeing this same error when WooCommerce Memberships is active. No other plugins except WooCommerce and The Events Calendar, Twenty Twenty-Two theme.

    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!

    Still getting a fatal error with 6.0.0.1 —
    Website is still down unless I disable Events Calendar + Events Calendar Pro

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi Everyone on this thread,

    I am so sorry might still be facing this problem; I want to make sure this doesn’t happen anymore.

    First, can you make sure you are on version 6.0.0.1?

    Also, it’s important to know that there was a lot of deprecated code in this release, so third party or even our own extensions might be the culprit of the problem, so I am going to ask you two to look at the article below for testing for conflicts:

    https://evnt.is/kb-conflicts

    Also, would you mind looking for a log of what the problem might be? I want to dig more into this.

    How to turn on Debugging to see the error logs:

    Debugging in WordPress

    Also, if you are running into problems, please revert to the old version while we figure out the culprit.

    Thanks so much!

    For me, the problem is not resolved either.
    Still the same error message.
    The Event Calendar and all other Plug-ins work just fine.
    As soon as I activate TEC 6.0.0.1 I get an fatal error if I want to edit an event or create a new one.

    I use the Buddy Boss Theme 2.0.9. and the Buddy Boss Child Theme.
    But I will not switch it on and off. I have other things to do.

    Plugin Support Abz

    (@abzlevelup)

    Hi @christianwozabal, sorry to hear about this. Thanks for bringing this to our attention as well, in regard to Buddy Boss. We’d try to replicate the issue with the Buddy Boss Theme as well.

    For now, it would be good to revert to the previous version for now, while we figure things out.

    Apologies for the inconvenience and we’d notify you in this thread.

    Best,
    Abz

    Hi @abzlevelup, thanks for letting me know.
    No problem. If you need it, I can provide you with further data.
    Greetings,
    Christian

    Hi @abzlevelup ,

    Just to clarify. TEC 6.0.0.1 works fine. However, it does not solve a problem because TEC 6.0.0 worked as well.

    The TEC PRO 6.0.0. causes the issue that I mentioned above. I understand that there has not been a new version of the TEC PRO.

    Again, if you need further information, just let me know. I am only hesitant to broadcast too much in an open forum.

    Greetings,
    Christian

    @abzlevelup any news?

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @christianwozabal,

    I was looking into this problem a little further.

    This particular bugfix only needs to happen on The Events Calendar since the library that throws the error is only used by Events Pro but is defined in The Events Calendar.

    Internally on all of our tests, we cannot hit this particular bug once The Events Calendar is on version 6.0.0.1; So if you are still facing that issue and cannot share more information here I would suggest you ping us on our private support channels.

    https://support.theeventscalendar.com/

    When you do, please mention this thread and the problem you are facing. We will need you to share the help data displayed here:

    https://theeventscalendar.com/knowledgebase/k/sharing-your-system-information/

    With that support can pin point what might be happening.

    best Regards,

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Fatal errors with The Events Calendar 6.0.0 and Event Tickets 5.5.0’ is closed to new replies.