error on line 2 at column 6: XML declaration allowed only at the start of the document
使用Google XML Sitemaps生成全站地图后,访问https://www.guojingyi.cn/sitemap.xml异常:
原因:
wordpress下的functions.php文件,结构如:
<?php>
function
<?>
functions与标签<?php>或<?>之间包含空行
解决办法:
删除首尾空行即可!