I tried to update the PHP of my site on WHM from PHP 7.4 to PHP 8.2.
But before updating I make sure that themes, plugins, and core WordPress are up to date.
After upgrading to PHP 8.2 I've got this error.
Fatal error: Uncaught TypeError: call_user_func_array():
Argument #1 ($callback) must be a valid callback,
non-static method wp_meta_robots_plugin::meta_robots_addcolumn()
cannot be called statically in
/home/fixmywri/public_html/wp-includes/class-wp-hook.php:310
Stack trace: #0 /home/fixmywri/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#1 /home/fixmywri/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#2 /home/fixmywri/public_html/wp-settings.php(632): do_action('init')
#3 /home/fixmywri/public_html/wp-config.php(90): require_once('/home/fixmywri/...')
#4 /home/fixmywri/public_html/wp-load.php(50): require_once('/home/fixmywri/...')
#5 /home/fixmywri/public_html/wp-blog-header.php(13): require_once('/home/fixmywri/...')
#6 /home/fixmywri/public_html/index.php(17): require('/home/fixmywri/...')
#7 {main} thrown in /home/fixmywri/public_html/wp-includes/class-wp-hook.php on line 310
I am using the Twenty Twenty theme. I tried to switch to a different theme, but the error still persists.
What could be the problem with this?