sy-records / sync-qcloud-cos

💾 使用腾讯云对象存储服务COS作为附件存储空间的WordPress插件。https://wordpress.org/plugins/sync-qcloud-cos/
https://qq52o.me/2518.html
Apache License 2.0
148 stars 18 forks source link

<?php前和?>后有空行,导致sitemap无法使用 #7

Closed steven52880 closed 4 years ago

steven52880 commented 4 years ago

如题,删掉空行即可

sy-records commented 4 years ago

什么?sitemap和这个插件有什么关系呢?

steven52880 commented 4 years ago

装了再装seo插件然后sitemap就报错打不开了

sy-records commented 4 years ago

什么插件?开启wp_debug有什么错误提示?

steven52880 commented 4 years ago

Yoast SEO(其实根插件没关系) 是因为XML文件前面有空行导致错误。如果插件前面和后面有空行被include的时候就直接输出了嘛。 之前也试过同样的问题,去掉空行就好了。

sy-records commented 4 years ago

没遇到你说的问题,我插件哪里有空行?

steven52880 commented 4 years ago

Wordpress“安装插件”里面安装的

sy-records commented 4 years ago

贴个图片看看

steven52880 commented 4 years ago

https://web-1252733662.cos.ap-guangzhou.myqcloud.com/wordpress/批注-2020-03-11-143849.jpg https://web-1252733662.cos.ap-guangzhou.myqcloud.com/wordpress/批注-2020-03-11-143943.jpg

sy-records commented 4 years ago

嗯知道了,可能是更新插件的时候多了一个符号,我重新发布下。 image

steven52880 commented 4 years ago

sy-records commented 4 years ago

升级下吧