Fatal Illegal Offset in >=15.6.1 on >=PHP 8
-
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)
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.