Error after updating PHP to version 8
-
After updating PHP to version 8.1, unfortunately the banners are not displayed and I receive an error code on the website:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /…/wp-content/plugins/random-banner/include/controller/populate-content.php:216 Stack trace: #0 /… /wp-content/plugins/random-banner/include/controller/populate-content.php(586): bc_rb_open_case() #1 /…/wp-content/plugins/random-banner/include/widget/random- banner-widget.php(54): bc_rb_generate_banners('firstpost', Array) #2 /…/wp-includes/class-wp-widget.php(394): random_banner_widget->widget(Array, Array) #3 /…/wp-includes/widgets.php(837): WP_Widget->display_callback(Array, Array) #4 /…/wp-content/themes/xxx/index.php(38): dynamic_sidebar ('first-post-widg…') #5 /…/wp-includes/template-loader.php(106): include('/…') #6 /…/wp- blog-header.php(19): require_once('/…') #7 /…/index.php(17): require('/…') #8 {main} thrown in /. ../wp-content/plugins/random-banner/include/controller/populate-content.php on line 216
Can you help solve this problem? I use plugin version 4.2.2 and the latest WordPress.
- The topic ‘Error after updating PHP to version 8’ is closed to new replies.