网站xml站点地图报错解决办法

温馨提示:本文最后更新于2025-09-25 21:24:37,某些文章具有时效性,资源缺失或已失效,请在下方留言或联系站长

今天突然发现网站站点地图报错,提示如下问题:This page contains the following errors:
error on line 1 at column 7: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

我使用的是自带的站点地图,后台是找不到xml文件,查了一下一堆说是什么编码不对啥的弄完发现还是不行,下面说解决办法。

解决办法

后台找到function.php文件将<?php前方的的空格去掉即可解决。如图:

刷新网页可以看到已经可以使用了

© 版权声明
THE END
点赞12赞助 分享
评论专区 抢沙发

请登录后发表评论

    暂无评论内容