自由屋推书网—热门的小说推荐平台!

你的位置: 首页 > wordpress分享

百度wordpress结构化插件发表文章时出错

2015-10-31 08:32:34

Wordpress安装了百度架构化插件以后,发表文章时,出现一下错误!这个错误是由于百度插件本身引起的,而且这个插件再wordpress插件搜索中,查询不到,不知道是没有还是还是没有审核通过!而这个插件本身也有快两年没有更新了!从开发到最后一次更新时间是2014年2月13日。或者说一直没更新!

wordpress结构化插件

提示错误信息如下:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/public_html/wp-content/plugins/baidusubmit/inc/sitemap.php on line 521
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/wp-content/plugins/baidusubmit/inc/sitemap.php:521) in /home/public_html/wp-admin/post.php on line 233
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/wp-content/plugins/baidusubmit/inc/sitemap.php:521) in /home/public_html/wp-includes/pluggable.php on line 896

基本上可以推测的是百度Wordpress插件自身的问题,解决的办法是将/baidusubmit/inc/sitemap.php中的:

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

换成:

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);

这样就解决了安装了百度wordpress结构化插件发表文章时错误的提示!

编辑推荐

热门小说