Uncaught TypeError: Cannot access offset of type string on string
-
WordPress version: 6.7.1
The Events Calendar version: 6.9.0Loading the main page of the wordpress site causes the following error:
An error of type E_ERROR was caused in line 1128 of the file /var/www/wptbox/wp-content/plugins/the-events-calendar/common/src/Tribe/Rewrite.php. Error message: Uncaught TypeError: Cannot access offset of type string on string in /var/www/wptbox/wp-content/plugins/the-events-calendar/common/src/Tribe/Rewrite.php:1128
Stacktrace:
#0 /var/www/wptbox/wp-content/plugins/the-events-calendar/src/Tribe/Rewrite.php(673): Tribe__Rewrite->parse_request()
#1 /var/www/wptbox/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Url.php(156): Tribe__Events__Rewrite->parse_request()
#2 /var/www/wptbox/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Url.php(94): Tribe\Events\Views\V2\Url->parse_url()
#3 /var/www/wptbox/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php(1221): Tribe\Events\Views\V2\Url->__construct()
#4 /var/www/wptbox/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php(585): Tribe\Events\Views\V2\View->set_url()
#5 /var/www/wptbox/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Widgets/Widget_Abstract.php(85): Tribe\Events\Views\V2\View::make()
#6 /var/www/wptbox/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Widgets/Widget_List.php(89): Tribe\Events\Views\V2\Widgets\Widget_Abstract->setup_view()
#7 /var/www/wptbox/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Widgets/Widget_Abstract.php(66): Tribe\Events\Views\V2\Widgets\Widget_List->setup_view()
#8 /var/www/wptbox/wp-content/plugins/the-events-calendar/common/src/Tribe/Widget/Widget_Abstract.php(303): Tribe\Events\Views\V2\Widgets\Widget_Abstract->setup()
#9 /var/www/wptbox/wp-includes/widgets.php(1269): Tribe\Widget\Widget_Abstract->widget()
#10 /var/www/wptbox/wp-includes/blocks/legacy-widget.php(55): the_widget()
#11 /var/www/wptbox/wp-includes/class-wp-block.php(537): render_block_core_legacy_widget()
#12 /var/www/wptbox/wp-includes/class-wp-block.php(517): WP_Block->render()
#13 /var/www/wptbox/wp-includes/class-wp-block.php(517): WP_Block->render()
#14 /var/www/wptbox/wp-includes/class-wp-block.php(517): WP_Block->render()
#15 /var/www/wptbox/wp-includes/class-wp-block.php(517): WP_Block->render()
#16 /var/www/wptbox/wp-includes/class-wp-block.php(517): WP_Block->render()
#17 /var/www/wptbox/wp-includes/class-wp-block.php(517): WP_Block->render()
#18 /var/www/wptbox/wp-includes/blocks.php(2190): WP_Block->render()
#19 /var/www/wptbox/wp-includes/blocks.php(2242): render_block()
#20 /var/www/wptbox/wp-includes/class-wp-hook.php(324): do_blocks()
#21 /var/www/wptbox/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#22 /var/www/wptbox/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1933): apply_filters()
#23 /var/www/wptbox/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(635): WP_REST_Posts_Controller->prepare_item_for_response()
#24 /var/www/wptbox/wp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Posts_Controller->get_item()
#25 /var/www/wptbox/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request()
#26 /var/www/wptbox/wp-includes/rest-api.php(576): WP_REST_Server->dispatch()
#27 /var/www/wptbox/wp-includes/rest-api.php(2957): rest_do_request()
#28 [internal function]: rest_preload_api_request()
#29 /var/www/wptbox/wp-includes/block-editor.php(753): array_reduce()
#30 /var/www/wptbox/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#31 /var/www/wptbox/wp-admin/post.php(187): require(‘…’)
#32 {main}
The topic ‘Uncaught TypeError: Cannot access offset of type string on string’ is closed to new replies.