Error after updating PHP to version 8
-
Due to hosting guidelines, I was forced to enable PHP v8.1 on the server. After this operation, some of the tables stopped displaying (it’s strange that only some of them) and I receive the following error message:
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method TablePress_Row_Order::turn_off_caching() cannot be called statically in /home/.../wp-includes/class-wp-hook.php:324 Stack trace: #0 /home/.../wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #1 /home/.../wp-content/plugins/tablepress/controllers/controller-frontend.php(646): apply_filters('tablepress_tabl...', Array, Array) #2 /home/.../wp-includes/shortcodes.php(433): TablePress_Frontend_Controller->shortcode_table(Array, '', 'table') #3 [internal function]: do_shortcode_tag(Array) #4 /home/.../wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(table)...', 'do_shortcode_ta...', '<!--<h3><strong...') #5 /home/.../wp-includes/class-wp-hook.php(326): do_shortcode('<!--<h3><strong...') #6 /home/.../wp-includes/plugin.php(205): WP_Hook->apply_filters('<!--<h3><strong...', Array) #7 /home/.../wp-includes/widgets/class-wp-widget-custom-html.php(150): apply_filters('widget_text', '<!--<h3><strong...', Array, Object(WP_Widget_Custom_HTML)) #8 /home/.../wp-includes/class-wp-widget.php(394): WP_Widget_Custom_HTML->widget(Array, Array) #9 /home/.../wp-includes/widgets.php(837): WP_Widget->display_callback(Array, Array) #10 /home/.../wp-content/themes/modern-multipurpose/sidebar.php(3): dynamic_sidebar('sidebar-widget-...') #11 /home/.../wp-includes/template.php(790): require_once('/,,,/a...') #12 /home/.../wp-includes/template.php(725): load_template('/home/.../a...', true, Array) #13 /home/.../wp-includes/general-template.php(136): locate_template(Array, true, true, Array) #14 /home/.../wp-content/themes/modern-multipurpose/single.php(62): get_sidebar() #15 /home/.../wp-includes/template-loader.php(106): include('/.../a...') #16 /home/.../wp-blog-header.php(19): require_once('/.../a...') #17 /home/.../index.php(17): require('/home/.../a...') #18 {main} thrown in?/home/...l/wp-includes/class-wp-hook.php?on line?324
Can anyone help me get it working again? I will add that returning to PHP 7.4 (I still have this option for a while) solves the problem completely. The latest TablePress plugins and add-ons. WP also the latest.
- The topic ‘Error after updating PHP to version 8’ is closed to new replies.