Same here. In the debug.log
, it shows this:
PHP Fatal error: Uncaught TypeError: ltrim(): Argument #1 ($string) must be of type string, array given in wp-includes/formatting.php:4379
On the “add plugin” page, it shows this error under Jetpack:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Deactivated all the plugins, reverted to the default theme, and still had the same issue. As soon as I switch back to PHP 7.4, the issue goes away.
Currently, I’m on PHP 8.2. Tried both 8.1 and 8.0 and both had the same issue.
I tried repairing and optimizing the database as well. Even performed a reinstallation of WordPress but the issue persists.