OS: Debian Bookworm,
WordPress: 6.2,
PHP: 8.2
I upgraded my webserver from Debian Bullseye to Bookworm today. Everything worked - except all Wordpress sites. When visiting such a site (on my server), I first got the following error message:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Please check that the mysqli PHP extension is installed and enabled.
I knew my PHP was upgraded from v7.4 to v8.2 so I thought installing the mysql extension for 8.2 would solve the problem:
apt-get install php8.2-mysql
Some Wordpress sites now worked, others were giving this error:
There has been a critical error on this website.
So no idea where to go from here... Can anybody give me some pointers? Thanks in advance!
EDIT:
I activated debug mode on one of the non-working sites, and the debug log showed this:
[25-Jul-2023 14:07:21 UTC] PHP Fatal error: Uncaught TypeError:
call_user_func_array(): Argument #1 ($callback) must be a valid callback,
non-static method MerlicFilterCategoryLite::filter() cannot be called
statically in /usr/sites/asite/htdocs/wp-includes/class-wp-hook.php:308
Stack trace:
#0 /usr/sites/asite/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()