PHP Warning is:
Warning: Invalid argument supplied for foreach() in .../wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php on line 230
It seems that’s related to parsing images. If you use the filter wpseo_sitemap_urlimages then it should return an array. Did you use this hook?
If you want to remove images from sitemap then proper code is:
add_filter( 'wpseo_sitemap_urlimages', '__return_empty_array' );
I didn’t touch the code. And when I try to read / modify the archive, the code is codified or in hexadecimal. When do I have to put that code or disable that option? Thank you for the answer!
Okay, fixed. I went to “class-sitemaps-renderer.php” in the edit plugin option and converted the whole foreach to a comment code. Also If you can tell me where can I look for that filter/hook to make it better, I would really appreciate!
Thank you and have a nice New Year! =)
Editing the plugin files is not recommended as the changes are likely to be overwritten with the next plugin update.
If you or your developer did not write a custom integration with the Yoast sitemap, this means something else in your setup is customizing the Yoast sitemap.
Please provide the answers to the following:
- Have you performed a conflict check? If not, please do so. Did you discover a conflict?
- Does the issue occur when using a default theme with only Yoast SEO active?
- Does the issue occur with the current version of WordPress?
- Does the issue occur with the current 9.3 version of Yoast SEO?
- Is the issue specific to a certain part of your sitemap, like posts, products, categories, etc?
If there is a conflict with a plugin or a theme, you can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.
If you didn’t find any conflicts, we think the issue is specific to your site. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our premium email support so we can help you further.
I agree that editing the plugin files isn’t good approach.
It seems that you have installed Madara – Core plugin and it was issue only related to wp-manga-chapters-sitemap. I’ve little researched and it seems that this plugin contains custom sitemap provider (for Yoast sitemaps).
It isn’t free plugin and it’s most likely an issue in this plugin (regarding that you don’t have any custom code). We can’t help more because commercial products are not supported in these forums.
Please contact developers of Madara – Core plugin.