• Resolved connorwebfx

    (@connorwebfx)


    Hello!

    Once upgrading the plugin to version 5.16.1 (5.16.1.1 also exhibits the problem) we started getting the following error:

    PHP Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in /public_html/wp-includes/class-wp-tax-query.php:163
    Stack trace:
    #0 /public_html/wp-includes/class-wp-tax-query.php(121): WP_Tax_Query->sanitize_query(Array)
    #1 /public_html/wp-includes/class-wp-query.php(1336): WP_Tax_Query->__construct(Array)
    #2 /public_html/wp-includes/class-wp-query.php(913): WP_Query->parse_tax_query(Array)
    #3 /public_html/wp-includes/class-wp-query.php(1792): WP_Query->parse_query()
    #4 /public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Repository.php(884): WP_Query->get_posts()
    #5 /public_html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Views/Month_View.php(172): Tribe__Repository->first()
    #6 /public_html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Views/Month_View.php(318): Tribe\Events\Views\V2\Views\Month_View->get_next_event_date(Object(Tribe\Utils\Date_I18n))
    #7 /public_html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php(638): Tribe\Events\Views\V2\Views\Month_View->setup_template_vars()
    #8 /public_html/wp-content/plugins/events-calendar-pro/src/Tribe/Views/V2/Shortcodes/Tribe_Events.php(727): Tribe\Events\Views\V2\View->get_html()
    #9 /public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Shortcode/Manager.php(116): Tribe\Events\Pro\Views\V2\Shortcodes\Tribe_Events->get_html()
    #10 /public_html/wp-includes/shortcodes.php(356): Tribe\Shortcode\Manager->render_shortcode(Array, '', 'tribe_events')
    #11 [internal function]: do_shortcode_tag(Array)
    #12 /public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(tribe_...', 'do_shortcode_ta...', '<!-- Start Bloc...')
    #13 /public_html/wp-includes/class-wp-hook.php(307): do_shortcode('<!-- Start Bloc...')
    #14 /public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters('<!-- Start Bloc...', Array)
    #15 /public_html/wp-includes/post-template.php(253): apply_filters('the_content', '<!-- wp:shortco...')
    #16 /public_html/wp-content/themes/page.php(4): the_content()
    #17 /public_html/wp-includes/template-loader.php(106): include('/p...')
    #18 /public_html/wp-blog-header.php(19): require_once('/p...')
    #19 /public_html/index.php(17): require('/p...')
    #20 {main}
      thrown in /public_html/wp-includes/class-wp-tax-query.php on line 163

    This broke our month calendar view.

    The issue only occurs starting with version 5.16.1 and does not occur on PHP 7.4 (presumably because this error is no longer a warning in PHP 8).

    Is this a known issue?

    Thank you for your help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Guga Alves

    (@gugaalves)

    Hi @connorwebfx,

    We do our best to provide PHP 8. x compatible plugins, but please note that the WordPress software is still showing as providing “beta support” for PHP 8.0. Hence, we recommend using PHP 7.4 until WordPress declares official support for PHP 8.

    You can read more about that at https://make.www.ads-software.com/core/handbook/references/php-compatibility-and-wordpress-versions/.

    This error is happening on PHP 7.4.1 as well. After the error, when I try to go back and reload the page that had the events shortcode on it, the page is totally broken.

    • This reply was modified 2 years, 4 months ago by rbergeron81. Reason: turned on notificaitons
    Plugin Support Abz

    (@abzlevelup)

    Hi @rbergeron81, sorry to hear about this. I’m curious what’s the version of the Events Calendar Pro Version? Please do note that the shortcodes will only work with the Pro version.

    Looking forward to helping you with this one.

    Best,
    Abz

    It seems to be working in 7.4.1 now, I think because I turned off error display on my local, but the debug log is still full of warnings when switching between the list/month/week view:

    [07-Jul-2022 15:42:30 UTC] PHP Warning: Illegal offset type in isset or empty in C:\Users\Richard\Local Sites\king-of-kings\app\public\wp-includes\class-wp-tax-query.php on line 163

    If I change PHP on my local to 8.0, the list/month/week view switcher stops working and gives a fatal error in the deubg log for the same illegal offset error. The Host that my client uses, Flywheel, is using PHP 8.1 and month/list/week view doesn’t work at all there. I am seeing a lot of hosts, such as Bluehost, are now switching to PHP 8.0+ as their default PHP version as well.

    We are using:

    The Events Calendar 5.16.2
    Events Calendar Pro 5.14.3
    The Events Calendar: Filter Bar 5.3.1

    Plugin Support Abz

    (@abzlevelup)

    Hi @rbergeron81, sorry to hear this. Currently, we do not have any workaround for this one. We’d recommend you downgrade to PHP 7.4 — it would be best to use this version, which we fully support. Would be best if you could reach out to your hosting provider in regard to this.

    Learn more about it in this article here:
    https://theeventscalendar.com/knowledgebase/k/php-8-support/

    Lastly, since you have an active license and for us to help you better, please open a Support Ticket on our Help Desk, for other issues or concerns.

    Let me know if you do have more questions. We’d be glad to help you out.

    Best,
    Abz

    While WordPress is still listed as offering beta support for PHP 8.0 and 8.1, the only items left are deprecation notices:

    WordPress 5.9 and PHP 8.0-8.1

    Do you have on your roadmap to fix this for PHP 8.X? If so, when is that scheduled to be released? I need to know if I need to switch to another plugin that will offer support for the latest versions of PHP.

    Thank you,

    Plugin Support Abz

    (@abzlevelup)

    Hi @jphogan, thanks for reaching out to us. That’s a good question, we’re still working on this, and I am unable to provide an exact date or time estimate for when will be releasing full support for PHP 8.0. We’d be releasing an official announcement and we’ll notify our users.

    I know this reply is not satisfactory, but I believe it is better to be honest about our prios and timelines for now. We do not want to keep you with the plugin you’re not able to move forward with and that doesn’t fit your requirements.

    Rest assured that our team is working on it and we’ll notify whenever there are updates. Again, thank you for your patience. Have a great day.

    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hey @connorwebfx, 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 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal Illegal Offset in >=15.6.1 on >=PHP 8’ is closed to new replies.