【发布时间】:2015-03-04 08:55:59
【问题描述】:
在 Production 上为 sitemap.xml 的 WordPress 网站获取解析错误,但奇怪的是我无法在我的 local 上复制该问题服务器。
报错信息如下:
This page contains the following errors:
error on line 7 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.
- 我尝试了“Google XML Sitemaps”和“Yoast SEO Plugin”,但错误没有改变。
- 我使用的是相同的源代码。
这背后的原因是什么,或者我可以采取的最佳方法来调试这个问题?
【问题讨论】:
-
我已经研究过空白问题,但如果是这样的话,那么问题应该可以在本地服务器中复制吗?