PHP 8.1 fatal error on plugin list with SVG icon

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.

Hi @satollo and @impunk, this should now be resolved.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer