Got “invalid foreach()” warning message when Add New theme

Hi, I have a fresh install of WordPress 5.5.1 running with PHP 7.4.10 (built-in php web server), When I go to WP Admin under “Appearance > Theme > Add New button”, I see the following message on screen:

An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.

But the site continue to function without problems.

And on the server log, I see this message:

[Fri Sep 25 09:08:14 2020] PHP Warning: Invalid argument supplied for foreach() in /path/to/wordpress/wp-admin/includes/theme.php on line 586

Has anyone encounter this?

  • This topic was modified 19 hours, 8 minutes ago by activecoder.



Source link