SEOPress error occurs when upgrading PHP8.1

[ad_1]

An SEOPress error occurred when upgrading PHP 8.1 (ea-php81). On the XML-HTML Sitemap page, when you press Ping Google manually or auto to send the Sitemap, the error will appear as follows:

[23-Mar-2023 07:52:45 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/********/public_html/********/wp-content/plugins/wp-seopress/inc/functions/sitemap/template-xml-sitemaps.php on line 215

I dropped back to PHP 7.4, almost no error messages, I don’t know what’s wrong?

Many Thanks

 

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