- Plesk for Linux
Unable to update a WordPress instance via Smart Update in WordPress Toolkit:
Smart Update test run could not be performed due to errors. Address the errors and try running Smart Update again. Malformed sitemap given
/var/log/plesk/panel.log with debug enabled:
DEBUG [extension/wp-toolkit] Begin traversing pages from sitemap: https://example.com/smart-update-sitemap.xml
[2021-10-11 08:13:44.838] 338053:6163f2385dd0a DEBUG [extension/wp-toolkit] Smart Update could not fetch the website sitemap. Only XML sitemaps are supported, given: text/html.
[2021-10-11 08:13:44.840] 338053:6163f2385dd0a DEBUG [extension/wp-toolkit] PleskExt\WpToolkit\SmartUpdates\Exception\SitemapUnsupportedFormatException: Smart Update could not fetch the website sitemap. Only XML sitemaps are supported, given: text/html.
The domain's sitemap does not exist or is not valid.
The Smart Update feature uses a sitemap to check the webpages mentioned in it. If the sitemap is invalid, the Smart Update feature does not know what web pages to check so the update will not be performed.
Contact the website developer to check the sitemap or create it if it's absent.