Updated the code to use \DOMDocument class to generate an up to date image sitemap XML.
Beni.Tade → created an issue.
updated again
Updated again
This is a patch that targets few lines of code and effectively fixes the issues. But the only issue left is the need to rename the already existing sitemap generated for all content types from 'google_image_sitemap.xml' to 'google_image_sitemap_all.xml' or regenerating it again. Regarding the warning look at this issue 🐛 Warning: Undefined array key "function" in Drupal\Core\Utility\Error::getLastCaller() (line 130 of core/lib/Drupal/Core/Utility/Error.php). Needs work
This is a patch that targets few lines of code and effectively fixes the issues. But the only issue left is the need to rename the already existing sitemap generated for all content types or regenerating it again. Regarding the warning look at this issue 🐛 Warning: Undefined array key "function" in Drupal\Core\Utility\Error::getLastCaller() (line 130 of core/lib/Drupal/Core/Utility/Error.php). Needs work