Fatal error on PHP 8 in Tribe/JSON_LD/Event.php on line 108
-
I have Event Tickets 5.5.3, Event Tickets Plus 5.6.2, The Events Calendar 6.0.3.1, The Events Calendar PRO 6.0.2.1 and The Events Calendar: Filter Bar 5.4.0 on a WordPress 6.0.3 installed on a VPS with cPanel running PHP 8.
Visiting the page with the following shortcode:
[tribe_events view="list" tribe-bar="false"]
gives me an error:
Fatal error: Uncaught Error: Attempt to assign property "startDate" on string in /home/coreak43/public_html/wp-content/plugins/the-events-calendar/src/Tribe/JSON_LD/Event.php on line 108
Stack trace goes as follows:
Tribe__Events__JSON_LD__Event::get_data() wp-content/plugins/the-events-calendar/common/src/Tribe/JSON_LD/Abstract.php:153 Tribe__JSON_LD__Abstract::get_markup() wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Views/Traits/Json_Ld_Data.php:69 Tribe\E\V\V\View::build_json_ld_data() wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php:1150 Tribe\E\V\V\View::filter_template_vars() wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php:647 Tribe\E\V\V\View::get_html() wp-content/plugins/events-calendar-pro/src/Tribe/Views/V2/Shortcodes/Tribe_Events.php:727 Tribe\E\P\V\V\S\Tribe_Events::get_html() wp-content/plugins/the-events-calendar/common/src/Tribe/Shortcode/Manager.php:116 Tribe\Shortcode\Manager::render_shortcode() wp-includes/shortcodes.php:356 do_shortcode_tag()
I get the same error when visiting a single event.
Switching back to PHP 7.4 fixes the problem but as PHP 7.4 official security support ends in less than a month I am pressed to migrate our website to PHP 8.
When is The Events Calendar going to be officially compatible with PHP 8?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error on PHP 8 in Tribe/JSON_LD/Event.php on line 108’ is closed to new replies.