Please paste the code that changed. Probably a mistake when changing.
Edit the file:
/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php
Find:
$allowed = [‘zh-cn’,’zh-tw’];
Change to:
$allowed = array(‘zh-cn’,’zh-tw’);
Edit the file:
/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php
Find:
$allowed = ['zh-cn','zh-tw'];
Change to:
$allowed = array('zh-cn','zh-tw');