新版Baidu Sitemap插件支持SAE平台与更新常见问题

现在用wordpress for SAE的童鞋多了起来。我也在SAE也搭建了一个wordpress,以后就用于某些插件的测试用了,方便移植插件到SAE平台。也顺道一起更新了插件的帮助说明,Baidu Sitemap用法更新。

不过,SAE的文档还没有认真看,按照目前的理解写了个判断在SAE平台运行的函数。先用着用用。

对SAE的平台还是不太熟。 不建议SAE平台的使用。 如有解决方法,欢迎提供。

上面的SAE平台判断如果有错误或是有更好的办法,就请留言提醒。谢谢~~

Baidu Sitemap插件

Baidu Sitemap Generator 1.44~1.45加上了支持SAE平台。 对config.yaml的修改也加入了提示。也顺便修复了一些BUG。

WordPress Url » http://wordpress.org/extend/plugins/baidu-sitemap-generator/

Download

 

FAQ帮助

1, Sitemap工具帮助http://zhanzhang.baidu.com/wiki/93

2, win主机用这个可能要写静态规则,如果打开是404错误页面的话。

baidu sitemap伪静态规则:(来自网友留言)

RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /sitemap.html /sitemap.html [L]

来自网友大学生宿舍购物的留言:

只需要把这2行加到win主机网站根目录下的httpd.ini配置文件即可。需要注意的是要加在配置规则之后,参考下面:

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /sitemap.html /sitemap.html [L]

 

3, 如何把Sitemap加到robots.txt嘛?

如在robots.txt加一句: Sitemap: http://www.example.com/sitemap.xml。方便百度收录。有几个sitemap的话也是一样的,一行一个,如:

Sitemap: http://www.example.com/sitemap.xml

原FAQ页面(http://liucheng.name/884/)有些并不适用现在的插件。 可以忽略。

439 回复
  1. tmd says:

    升级1.44后出现lc-archivers/lc_archivers_function.php on line 187

    柳城 回复:

    好。插件冲突了。马上更新。谢谢~~

    aihuan123 回复:

    急啊,网站地图有死链,更新也更不掉,怎么办呢
    http://www.ys9595.com/sitemap.html

    aihuan123 回复:

    不好意思,已经得到解决了,是别的插件造成的。我想说的是:这个插件还不错

    xqnj 回复:

    wp 3.6已经不能支持了,生不成Baidu Sitemap,让修改个目录权限为777,修改了也生不成!

    liujason 回复:

    我也是这样的,求解决方法

    colabug 回复:

    装上你的插件后,百度站长平台提示Xml格式错误,这是怎么忽视,柳城,你有Email 吗?

    http://www.jiaduoliduo.com/sitemap_baidu.xml

  2. MashiMaro says:

    火狐浏览器下点地图显示

    该 XML 文件并未包含任何关联的样式信息。文档树显示如下。

    如何解决?

    柳城 回复:

    给xml链接看看。 有可能只是浏览器的问题。

    MashiMaro 回复:

    火狐下都是这样包括你的站点
    该 XML 文件并未包含任何关联的样式信息。文档树显示如下。

    MashiMaro 回复:

    三种浏览器下显示
    截图

    http://img2081.poco.cn/mypoco/myphoto/20121228/12/6399617620121228120537039.jpg

    柳城 回复:

    那就是正常。 源代码没错就行。浏览器的提示可不理

  3. kevin says:

    SAE上还是无法运行啊,不知道为什么。

    柳城 回复:

    给链接给提示。我是测试成功的了。有没有见到SAE专有的说明。

    kevin 回复:

    一切显示正常,但是打开http://www.tianyuanke.com/sitemap.html/
    出现的是网站首页,不能显示网站 [抱拳] 地图

    kevin 回复:

    在后台中sorage中可以正常打开
    ,但是地址如下:
    http://tianyuanke-wordpress.stor.sinaapp.com/sitemap.html
    但是打开http://www.tianyuanke.com/sitemap.html/
    出现的是网站首页,不能显示网站地图
    [握手]

  4. kevin says:

    柳城你好:
    关于我上面提到的问题,重复了很多次也没能运行正常。利用sae自身的 Fetch URL 功能。在根目录下的config.yaml加入两行代码之后,又在你的文件baidu-sitemap-generator里加上了两个文件SAE_html.php和SAE_xml.php来配合config.yaml中加入的两行- rewrite:代码。

    SAE_html.php代码如下:
    fetch(“http://tianyuanke-wordpress.stor.sinaapp.com/sitemap.html”);
    echo $data;
    ?>

    SAE_html.php代码如下:
    fetch(“http://tianyuanke-wordpress.stor.sinaapp.com/sitemap_baidu.xml”);
    echo $data;
    ?>

    现在访问正常了。 [擦汗]

    kevin 回复:

    fetch(“http://tianyuanke-wordpress.stor.sinaapp.com/sitemap.html”);
    echo $data;
    ?>

    kevin 回复:

    fetch(“http://tianyuanke-wordpress.stor.sinaapp.com/sitemap.html”);
    echo $data;
    ?>

    kevin 回复:

    代码无法全部显示出来,不好意思

    kevin 回复:

    header(“Content-Type:text/html “);
    $f = new SaeFetchurl();
    $data = $f->fetch(“http://tianyuanke-wordpress.stor.sinaapp.com/sitemap.html”);
    echo $data;

    柳城 回复:

    我用SaeFetchurl测试过,没有成功。才换成get_file_contents的

  5. kevin says:

    柳城你好:
    关于我上面提到的问题,重复了很多次也没能运行正常。利用sae自身的 Fetch URL 功能。在根目录下的config.yaml加入两行代码之后,又在你的文件baidu-sitemap-generator里加上了两个文件SAE_html.php和SAE_xml.php来配合config.yaml中加入的两行- rewrite:代码。

    SAE_html.php代码如下:

    header(“Content-Type:text/html “);
    $f = new SaeFetchurl();
    $data = $f->fetch(“http://tianyuanke-wordpress.stor.sinaapp.com/sitemap.html”);
    echo $data;

    SAE_xml.php代码如下:

    header(“Content-Type:text/xml “);
    $f = new SaeFetchurl();
    $data = $f->fetch(“http://tianyuanke-wordpress.stor.sinaapp.com/sitemap_baidu.xml”);
    echo $data;

    这样才显示完整,不好意思。

    colin 回复:

    感谢,的确需要这样才能在主域名下正常访问。

    rhyme 回复:

    在SAE_html.php和SAE_xml.php加入kevin的代码,大家不要忘记加

    在这个地方忘记了,搞了好久!

    柳城 回复:

    在新版里会加上的。。。

    rhyme 回复:

    恩恩,期待! [可爱]

    mrx 回复:

    主机也是SAE
    wordpress 3.80 for sae

    下了您这个插件是1.5的版本,安装启用配置ok

    根目录下config.yaml也加了插件设置完毕后提示的内容

    如果不添加kevin说的文件会出404,按kevin说的添加后不404了。按正常地址访问sitemap.html和sitemap_baidu.xml出来的页面内容是空的,

    不知道您说的”我用SaeFetchurl测试过,没有成功。才换成get_file_contents的”这句话是什么个情况?

    求解!

    ps:插件不错~ [强]

    mrx 回复:

    访问sitemap_baidu.xml空白的兄弟看看http://mawenjian.net/p/93.html这个帖子吧,我已经搞定了

  6. 吾爱IT网 says:

    [强] 一直在SAE上面用baidu_sitemap.

    小小意见哦:把生成的地图放在KV里面,即saekv://wordpress/

    好像那2个文件在安装包不存在哦,不过自己可以新建一个

    直接file_get_contents()就可以拿出来了。。

    再次谢谢你辛苦开发次插件!

  7. ajian says:

    我已经安装了Baidu Sitemap Generator 1.45版本的插件,激活之后完成参数的基本配置,并提交查询内容、点击update XML file按钮,插件页面上方提示:恭喜, 生成百度 Sitemap 文件成功。

    但是页面下方依旧有:

    XML 文件状态
    还没有创建百度Sitemap文件呢

    的信息提示。请教整么回事,

    我目前所使用的是新浪云商店的wordpress平台空间,和你说的SAE平台是一回事吗?

    柳城 回复:

    那有可能不是一回事。需要测试看看,有些判断语句可能不一定正确。

    colabug 回复:

    柳城先生,您好!

    装上你的插件1.5版本后,百度站长平台提示Xml格式错误,这是怎么回事?

    http://www.jiaduoliduo.com/sitemap_baidu.xml

  8. 雨林亭 says:

    BAE使用1.45版本出现这个.
    error on line 1 at column 1360: EntityRef: expecting ‘;’
    在刚建的一个BAE的测试站上就没问题.求解决方法 [可怜]

  9. diligulu says:

    博主你好,因为我用的主机主目录不能更改权限,所以根本不能创建sitemap_baidu.xml,所以我想问如何更改sitemap路径呢?

  10. 网站制作 says:

    Responsive 主题下 有三篇文章显示这样代码 sitemap.html
    ———————————————
    & Drop” target=”_blank”>Drag & Drop
    Tons of Addons
    & Mobile” target=”_blank”>Responsive & Mobile
    ———————————————-
    我看来使用Responsive主题都会这样

  11. 艾云 says:

    在sae上安装启用了插件,但在根目录却看不到html和xml这两个文件,按生成的地址访问总是出现404错误,请求帮助,谢谢!

  12. iSunya says:

    XML Parsing Error: not well-formed
    生成 sitemap_baidu.xml 的时候跟 Contact form 7 插件有冲突, 会把 Contact form 7 的表单也算一个post, 造成.xml错误, 这个有办法解决吗? 生成html的也会生成 Contact form 7 的表单为一个post. [握手]

  13. kevin says:

    我的显示如下错误:
    This page contains the following errors:

    error on line 1 at column 529: EntityRef: expecting ‘;’
    Below is a rendering of the page up to the first error.
    请问如何解决。谢谢!

    地址:http://www.kaiwenblog.com/sitemap_baidu.xml

  14. rayse says:

    你好,用了sitemap_baidu.xml提交给百度后提示

    XML解析错误:XML 或文本声明不在实体的开头
    位置:http://www.rayse.com/archives/category/shengchansl/youxiujgc/feed
    行:3,列:1:

    我看了百度对sitemap的要求也是要写开头的。

    但用你的插件写的是

    请问这个是BUG不。?谢谢 [疑问]

  15. 小光 says:

    你好,
    我在“自己的路”控制台的lnmp坏境下使用 baidu-sitemap-generator 插件,发现”当发布文章时更新Sitemap”这个功能失效了,试过很多次。本地使用PHPNOW,这个功能 就没问题。
    想知道是怎么回事?应该怎么弄。谢谢。 [呲牙]

  16. 蛮吉 says:

    那个最后更新时间是按照服务器的时间吗,我的地图时间和现在时间相差了8个小时

  17. 蛮吉 says:

    博主那个时间问题要改进,你使用的是系统的时间,而wordpress的时间调用函数是这样的
    function current_time( $type, $gmt = 0 ) {
    switch ( $type ) {
    case ‘mysql’:
    return ( $gmt ) ? gmdate( ‘Y-m-d H:i:s’ ) : gmdate( ‘Y-m-d H:i:s’, ( time() + ( get_option( ‘gmt_offset’ ) * HOUR_IN_SECONDS ) ) );
    break;
    case ‘timestamp’:
    return ( $gmt ) ? time() : time() + ( get_option( ‘gmt_offset’ ) * HOUR_IN_SECONDS );
    break;
    }
    }
    很多人使用的是国外的虚拟主机 时间是更改不了的
    这样子的话使用文章定时更新的时候,网站地图就会慢8个小时更新!

    92haonet 回复:

    我说怎么时间一直错后呢,原来如此啊 [呲牙]

  18. 蛮吉 says:

    wordpress有个常规设置里面有个设置时区的,你这个地图时间能不能根据设置的时区来,而不是使用服务器本身的时区,求更新

  19. 李可 says:

    我装了你的插件打开www.likeke.com.cn/sitemap_baidu.xml一片空白没有任何内容打开www.likeke.com.cn/sitemap.html也是一样不知道是怎么回事,以前刚装插件的时候就不会这样。

  20. smart says:

    您好,请问我用Baidu Sitemap Generator 生成XML以后,打开提示This page contains the following errors:

    error on line 1 at column 45401: EntityRef: expecting ‘;’
    Below is a rendering of the page up to the first error.

    请问是怎么回事呢??

  21. 酷听科技 says:

    博主,为什么用百度BAE搭建的wordpress无法用baidu sitemap插件创建地图呢?而且谷歌地图插件也不可用,后台显示生成了地图,但是地图地址打开后显示页面未找到。

  22. andysky says:

    城哥可不可以开发这样一个插件,

    就是用户通过搜索引擎进入BLOG后自动提取搜索的关键词,然后根据关键词索引所有文章,然后自动成功一个静态的相关文章页面。 [握手]

  23. leo says:

    This page contains the following errors:

    error on line 1 at column 8216: EntityRef: expecting ‘;’
    Below is a rendering of the page up to the first error.

    与插件 Contact Form 7 冲突,忘解决

  24. 购域名 says:

    能否增加在sitemap里添加作者页面、标签页面、分月归档页面的功能,和自定义页面权重和更新频率的功能?
    盼回复,望能逐步增加功能!

  25. 小情绪小开心 says:

    求教啊 wordpress插件“Baidu Sitemap Generator”无法生成sitemap_baidu.xml 我求这2个文件的内容啊 我想直接用FTP弄到网站去 求文件啊 !我网站不能写入 !有木有帮忙下额

  26. 小张 says:

    PHP Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in D:\web\wp-content\plugins\baidu-sitemap-generator\baidu_sitemap.php on line 342

    使用了PHP 5.4之后,发表新文章的时候发生这样的错误 ,请帮忙看下怎么解决。

  27. xqnj says:

    有冲突,有冲突的“百度网站地图生成器”插件,这是我们的网站必须使用我们的网站站点地图插件:http://hsmpay.com

    冲突插头网址:http://wordpress.org/extend/plugins/baidu-sitemap-generator/

    期待解决,谢谢!

  28. eliteYang says:

    博主你好,请问为什么生成了sitemap_baidu.xml之后,访问都是正常的,但是在百度站长工具里提交sitemap时提示URL无法访问呢?感谢!

  29. 天使 says:

    每次发文章或者编辑时都出现这个错误。
    PHP Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in D:\wwwroot\wp-content\plugins\baidu-sitemap-generator\baidu_sitemap.php on line 342

  30. MOYO says:

    后台已经勾选了”当发布文章时更新Sitemap” 实际上并没有更新
    每次发布完文章都需要手动更新才行,怎么解决呢?我是iis环境

  31. Jackwen says:

    柳师兄,我的这个,http://www.jackwen.com/sitemap.html,地图怎么打不开呢?之前我装上的时候都可以,现在不知道情况怎么会变成这样,不知道问题出在哪里。

  32. itseowhy says:

    百度地图插件现在有一个问题就是总是显示该页面无效标题和安装失败刚安装好就测试这个插件,不有安装其他的插件麻烦你弄一下谢谢!弄好了跟我说一下

  33. 阿布 says:

    你好,我只要想在地图里加入文章跟某些分类, 不要加入独立页面,怎么设置?

  34. bookworm says:

    安装后生成的xml文件,用浏览器打开,提示:
    This page contains the following errors:

    error on line 1 at column 40047: EntityRef: expecting ‘;’
    Below is a rendering of the page up to the first error.

    看了前面的同学的回复,似乎跟Contact Form 7这个插件冲突,不知道有没有解决方案?

  35. ISOFTee says:

    在config.yaml添加
    – rewrite: if ( path ~ “sitemap_baidu.xml” ) goto “wp-content/plugins/baidu-sitemap-generator/SAE_xml.php”
    – rewrite: if ( path ~ “sitemap.html” ) goto “wp-content/plugins/baidu-sitemap-generator/SAE_html.php”

    也没有用啊,打开http://www.isoftee.com/sitemap.html
    还是404??

  36. jkirin says:

    博主有没有发现,用了你的插件后,不管权限怎么改,在点击Update XML file后始终提示“文件或目录不可写,请修改根目录权限改为777”,我请空间商的技术把权限全开,结果依然一样,博主能否讲下这个怎么解决?

  37. leon says:

    我的文章固定链接使用的是自定义/%category%/%post_id%这种形式的,发现生成的xml和html的文章链接是http://http://www.67279.com//449,中间的分类名没有生成,谷歌的地图插件可以生成,博主的不可以,这是什么原因?是不是bug?望回复

  38. 百度地图疑问 says:

    百度站点地图http://www.qinziheng.com/sitemap.html中的链接都是空间商的二级域名,而且发布文章后,站点地图没有同步。想要让链接变为自己的独立域名,地图同步更新,怎么处理呢?感谢柳城 [抱拳]
    wordpress后台已经设置为独立域名

  39. appying says:

    你好,你的 百度sitemap插件,我发现和Contact Form 7有冲突,当Contact Form 7开启的时候,百度sitemap生成就不完整。 2个插件的冲突我反复确认过,不同的网站也是一样,并且和Contact Form 7设置无关。
    希望空的时候可以更新版本,修复BUG,非常感谢,毕竟2个插件用户量都很大。

  40. 嘉画 says:

    我在新浪云商店开的博客,安装了该插件后生成不出来,还需要设置哪里么?
    辛苦了,谢谢

  41. Mr.tore dream says:

    撸主。。发现开启插件后,点击更新文章按钮后出现如下情况,实在不懂

    Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in /home/tg1609/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 342

    Warning: Cannot modify header information – headers already sent by (output started at /home/tg1609/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:342) in /home/tg1609/public_html/wp-admin/post.php on line 222

    Warning: Cannot modify header information – headers already sent by (output started at /home/tg1609/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:342) in /home/tg1609/public_html/wp-includes/pluggable.php on line 875

  42. 黯然过客 says:

    Hi,能否支持百度“站内搜索”的XML格式?

    我提交之前的Sitemap文件,提示校验失败:

    错误:Xml格式错误
    详情:1.存在Element ‘url’: Missing child element(s). Expected is ( data ). 错误

    站内搜索数据提交流程和格式说明:http://zhanzhang.baidu.com/wiki/170

    成长的企鹅 回复:

    这个更新很简单的。自己可以动手修改

    alunbar 回复:

    我也遇到这个问题,请问要怎么修改呢?

  43. ZingER_ says:

    RewriteRule /sitemap_baidu.xml /sitemap_baidu.xml [L]
    RewriteRule /sitemap.html /sitemap.html [L]

    我的是win主机,在规则里加入这两行还是不能打开,求解答。 [衰]

  44. @Fan says:

    发表文章出现下面页面提示:PHP Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in D:\wordpress\wp-content\plugins\baidu-sitemap-generator\baidu_sitemap.php on line 342

    但是文章还是能成功发表!这是为何!

  45. lm6 says:

    [强] 插件很好用,不过有问题想请教下作者。
    在SAE伪静态下如何310重定向到XML文件?

  46. 上升 says:

    你好,我用了你的插件后,发现地图html中竟有一些不相关的内容,如 如何正确删除cookies,如何修改注册信息等等,我确定我的网站上不曾有够这些,请问这个要怎么处理呢?

  47. nZone says:

    能否像 XML sitemap 一样可以屏蔽 Simple URLs 发布的链接呢? [疑问]

    钟汉良 回复:

    我也是在苦恼这个问题。

    nzone 回复:

    把时间改成N年前的就好了!

    钟汉良 回复:

    不行啊。我把短链接修改成2000年,他倒是更新到第一条了
    还有,这插件生成的地图中,文章发布的时间也是跟你发布文章时间一致,后台更改无效。
    比如,我发布时间是2013.10.30 后台更改成2013.10.20
    他还是显示成前者。

    他其实是以你更新的时间为准的,短链接已修改下就更新了。
    所以靠修改时间这方法行不通。
    不知道你还有没其他办法。
    我看有些网站都没生成那个短链接。伤脑筋啊!

    又看不懂代码,应该是靠修改下代码什么的

  48. alunbar says:

    老大,我在用你的插件生成百度地图,我提交到百度之后出现如下的错误。请问要怎么解决。我的百度地图地址是:http://www.movies168.com/sitemap_baidu.xml

    显示的错误如下:
    文件:www.movies168.com/sitemap_baidu.xml

    本次抓取时间:2013-09-25 20:29

    错误:Xml格式错误

    详情:

    1.存在Element ‘url’: Missing child element(s). Expected is ( data ). 错误,错误详情如下:

    -09-25 20:12:54″ –> http://www.movies168.com2013-09-25T12:12:54+00:00daily1.0 http://www.movies168.com/2013/3960.html2013-09-17T15:12:39+00:00monthly0.6http://www.movies168.com/2013/3955.html2013-09-16T15:49:21+00:00</last

  49. 菜贩儿 says:

    你好,请问一下,插件里的设置显示:文件或目录不可写,请修改根目录权限改为777。这个是什么原因,怎么解决

  50. Thorb says:

    博主,生成的xml文件最后一条记录没有url,导致导致百度不能失败,提示说存在不能识别错误,http://thorb.cn/sitemap_baidu.xml,请博主有空看一下 [抱拳]

  51. Vibe English says:

    我在www.vibeenglish.com上装了最新的baidu sitemap generator,我想请问一下大神几个小白问题哦,
    1,是不是什么都不用动(全部用默认设置),把以下四个选项全勾上就行
    Enabled XML Sitemap
    Enabled Html Sitemap
    Update Sitemap when Publish Post
    Post Limit 1000
    2,Check XML-sitemap File: http://www.vibeenglish.com/sitemap_baidu.xml
    时候出现This XML file does not appear to have any style information associated with it. The document tree is shown below.要不要紧?

    Vibe English 回复:

    http://www.vibeenglish.com 里面的什么xml是不是不用动?
    还有以下两个语句不是很明白,意思是要做一定的更改吗?
    add a link in Homepage or Anywhere you want.

    PS:
    提醒:百度的ping服务地址早就有了。可以把它加入ping服务列表,加快百度的收录速度。百度的ping服务地址:http://ping.baidu.com/ping/RPC2

    柳城 回复:

    没发现问题

  52. Millyn says:

    http://www.yifart.com/sitemap_baidu.xml
    麻烦插件主看一下,为何这个生成出现问题。。一直找不到解决方法。
    非常感谢。

    Millyn 回复:

    您好,我自己研究了一下,是因为
    【http://www.yifart.com/?post_type=wpcf7_contact_form&p=360】
    一条这样的链接导致生成失败,我在XML文件里把该条链接删除了即可正常访问,可我每一次更新不可能都手动删除,有什么办法拒绝某链接的XML生成吗。

    柳城 回复:

    就快更新了

    柳城 回复:

    升到最新版本就能解决了。

  53. andymoxia says:

    麻烦插件主看一下,我的跟上面的一样。为何这个生成出现问题。出现XML 解析错误:不合格式
    位置:http://www.alwaysan.com/sitemap_baidu.xml
    行:1,列:1175:<urlset xmlns:xsi="

  54. pangys says:

    柳城你好!我在使用的时候遇到了一些问题:

    在发布文章后提示
    Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in /public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 342

    Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:342) in /public_html/wp-includes/pluggable.php on line 899
    请问该如何解决?

  55. 风月 says:

    Illegal string offset ‘lc_is_update_sitemap_when_post’ in /public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 342

    这个问题很普遍啊,看了回复,不少人遇到。
    我两个空间,一个就会提示这个错误。

  56. 求教了 says:

    你好,我使用了Permalink Trailing Slash Fixer插件之后,地址全部规范化,一般我的地址都是这个样子的:
    目录页面应该是http://www.domain.com/abc/
    页面时http://www.domain.com/abc/123.html
    经过我的调整之后,在xml地图已经正常,但是在html地图文件中发现分类目录的地址全部都是这样样子的:http://www.domain.com/abc,后面没有这一斜杠,求教改怎么调整,保证地址规范化!

    柳城 回复:

    这就奇怪。都是同个标准出来的。我查查。

  57. 福利党 says:

    Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in
    发表文章的时候一直在提示这个错误,但是文章可以正常发布。

  58. calonye says:

    柳城你好,我查看了地图的文章只更新到11月份,但我的文章已经发布到2014年1月份了,我找不到是什么问题造成无法更新地图的文章,请问有类似的问题解决办法吗? [抱拳]

    柳城 回复:

    我看没问题啊,3月8号的都有了。你看的话可能只是浏览器缓存问题造成的。

  59. Zeyes says:

    以前可以的 不知为什么不行了。
    启动插件的时候:该插件没有有效的标题。
    发表文章的时候:Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in /home/dgpwusam/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 406

    Warning: Cannot modify header information – headers already sent by (output started at /home/dgpwusam/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:406) in /home/dgpwusam/public_html/wp-admin/post.php on line 233

    Warning: Cannot modify header information – headers already sent by (output started at /home/dgpwusam/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:406) in /home/dgpwusam/public_html/wp-includes/pluggable.php on line 896

  60. hmouse says:

    Warning: file_put_contents(saestor://wordpress/sitemap_baidu.xml) [function.file-put-contents]: failed to open stream: No such file or directory in /home/wwwroot/blog/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 283

    Warning: file_put_contents(saestor://wordpress/sitemap.html) [function.file-put-contents]: failed to open stream: No such file or directory in /home/wwwroot/blog/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 368

    我手动添加2个文件还是 报这个,清查下吧

    柳城 回复:

    新浪sae平台?

  61. tom says:

    你好,我是wp3.8.1版本,用了你的插件,无法生成sitemap.html和sitemap_baidu.xml(网站权限已设777)
    我自己在本地新建html和xml文件上传,也设为777,一样无法写入.
    请帮忙一下

  62. acyc says:

    建议,可以新增一个目录选择的功能,有的目录不希望被收录,用robots屏蔽的话 量又太大 如果能限定目录还是比较方便的

  63. 明月登楼的博客 says:

    我按照提示都做好了,插件也启动了,文件也生成到SAE的Storage上了,就是访问sitemap.html时提示文件不存在,这是怎么回事儿呀?config.yaml里的跳转也都加了呀!

  64. E路航V700智能导航专卖 says:

    柳城,你好!
    网站使用baidu-sitemap-generator插件,发布完文章后,文章可以看到,但出现下面警告。wp是3.8.3版本,插件1.50版本。是不是插件有什么错误?怎么解决?谢谢!
    Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in /home/daohang1/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 406

    Warning: Cannot modify header information – headers already sent by (output started at /home/daohang1/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:406) in /home/daohang1/public_html/wp-admin/post.php on line 233

    Warning: Cannot modify header information – headers already sent by (output started at /home/daohang1/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:406) in /home/daohang1/public_html/wp-includes/pluggable.php on line 896

  65. suifengtec says:

    Deprecated: Function split() is deprecated in /home/content/w/w/w/XXX/wp-content/plugins/baidu-sitemap-generator/sitemap-function.php on line 437

  66. 杨霄博客 says:

    百度站长平台抓取错误
    文件:gangchang.haoyhaoy.com/sitemap_baidu.xml

    本次抓取时间:2014-05-09 15:06

    错误:Xml格式错误

    详情:

    1.存在Element ‘lastmod’: ‘2014-05-09T06:50:32+00:00’ is not a valid value of the atomic type ‘tLastmod’. 错误,错误详情如下:

    /www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd” xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″>http://gangchang.haoyhaoy.com 2014-05-09T06:50:32+00:00 daily1.0http://gangchang.haoyhaoy.com/?p=433722014-05-09T13:22:57+00:00monthly0.6http://gangchang.haoyhaoy.

  67. 杨霄博客 says:

    http://zhanzhang.baidu.com/site/format

    lastmod 指该条数据的最新一次更新时间 日期或日期时间 格式为:YYYY-MM-DD[Thh:mm:ss],日期与时间之间使用T分隔,可以仅提供年月日部分 可选 2013-01-01
    这个 参数貌似格式不对,忘更正,谢谢。

    柳城 回复:

    是嘛,我查查

    杨霄博客 回复:

    哥 ,请问这个问题是谁的问题?百度抽风?

    柳城 回复:

    格式不知是不是变了啊。 还没细看。。。 [衰]

  68. 山寨吧 says:

    你好 ,用了你的Baidu Sitemap插件,提交百度Sitemap后,百度提示Xml格式错误
    由于留言板无法提交截图,我腾讯微博私信你了

  69. 达·秀 says:

    你好,百度说sitmap格式里缺少必要的data字段1.存在Element ‘url’: Missing child element(s). Expected is ( data ). 错误,错误详情如下:-05-28 01:23:21″ –>http://blog.xxxx.com2014-05-27T17:23:21+00:00daily1.0http://blog.xxxx.com/archives/5172014-05-23T13:58:58+00:00monthly0.6http://blog.xxxx.com/archives/5082014-05-22T22:45:44+00:00建议解决方案: 请严格遵循规范修改xml文件后再提交。 查看详细格式示例>>

  70. hjl says:

    想问一下,我下载设置好选项之后,在robots文件也加了,还要做些什么呢?在根目录下的sitemap-baidu.xml文件里的代码有些是乱的,但是打开http://gjrcwseo.gotoip3.com/sitemap_baidu.xml里面代码没乱,要把它复制到sitemap-baidu.xml文件里吗

    _柳城 回复:

    不需要做啥了。就这样可以了。知道百度站长平台不? 去提交sitemap

  71. 彭兴朋 says:

    你好,我的百度地图里面的内容莫名其妙的总是隔三差五的变成乱码,今天又变成乱码了,我网站是UT-8的,我用gb32去看的时候,这些乱码就正常了,可是其他内容又变乱码了,这是不是说百度地图的编码不稳定还是怎么回事呢?http://www.toptbk.com/sitemap.html 这个地址,往下拉就可以看到!

    _柳城 回复:

    访问不了。

  72. Eden says:

    6月8号,百度首页第一名,但是6月10日,怎么出现掉落,瞬间感觉很不爽啊

  73. dsadsa says:

    Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in /home/itaofun1/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 406Warning: Cannot modify header information – headers already sent by (output started at /home/itaofun1/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:406) in /home/itaofun1/public_html/wp-admin/post.php on line 235Warning: Cannot modify header information – headers already sent by (output started at /home/itaofun1/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:406) in /home/itaofun1/public_html/wp-includes/pluggable.php on line 1121何解?〉

    上帝叫我作好人 回复:

    Warning: Illegal string offset ‘lc_is_update_sitemap_when_post’ in /home/youpiner/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 406Warning: Cannot modify header information – headers already sent by (output started at /home/youpiner/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:406) in /home/youpiner/public_html/wp-admin/post.php on line 235Warning: Cannot modify header information – headers already sent by (output started at /home/youpiner/public_html/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php:406) in /home/youpiner/public_html/wp-includes/pluggable.php on line 1121我的也是这样!

    _柳城 回复:

    下次更新。

  74. xiaochihome.com says:

    定时发布的文章,在写的当天就更新了。希望改进,去掉这个功能。到发布了在更新。

  75. Four Fire says:

    百度那个插件有个Bug,插件名称后面有个空格,,我在官方下那个版本,会不能启用

  76. wcd_1986@126.com says:

    为啥我的sae平台的可以用(生成了xml,html文件),但是config.yaml配置的不行啊,百度站长的sitemap无法抓取,求教。http://mywcd.sinaapp.com

  77. itam.cn says:

    你这个不支持sae的写入if(LCZ_IS_SAE()){ $stor = new SaeStorage(); $stor->write (“wordpress”, “sitemap_baidu.xml”,”$baidu_xml”); }else{ file_put_contents(“$filename”,”$baidu_xml”); @chmod($filename, 0777); }if(LCZ_IS_SAE()){ $stor = new SaeStorage(); $stor->write (“wordpress”, “sitemap.html”,”$html”); }else{ file_put_contents(“$filename_html”,”$html”); @chmod($filename_html, 0777); }

    _柳城 回复:

    明白。后来没用了

  78. Vim0x0n says:

    柳哥好。我用了3年你的插件了,一直挺好用。近来的时候启用了http://zhanzhang.baidu.com/的 sitemap中的实时推送功能发现总是提示错误,错误如下:错误:Xml根节点错误推送时间:2014-08-01 17:13详情:1.存在错误,错误详情如下:… …建议解决方案: 请检查拼写,严格遵循规范修改xml文件后再提交。 查看详细格式示例>>不知道是什么情况,请问你有遇到类似的情况吗?

    _柳城 回复:

    这个嘛。给个链接看看??

  79. shushengtalk says:

    百度地图更新这个Update XML file,出现这样的警告,Warning: file_put_contents(saestor://wordpress/sitemap_baidu.xml) [function.file-put-contents]: failed to open stream: No such file or directory in 怎么解决,谢谢

  80. huangjun says:

    怎么才能联系到你呢,Baidu Sitemap Generator这个插件是博主你写的吗,这个插件除了生成网站地图外,有没有自动提交的功能呢。百度官网有一个自动提交的插件但是没有本地生成静态地图的功能。想用你这个插件生成本地静态地图但是不知道你这个插件有没有自动提交的功能如果有的话是不是就和百度官网的那个自动提交的插件冲突了.

    _柳城 回复:

    下次更新。。

  81. Shine says:

    实测有bugWordPress 4.1的兼容性:未知

    _柳城 回复:

    我在4.1测试了,没发现问题。

    够意思 回复:

    更新后 博客头部出现:Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘do_baidu_sitemap_auto_daily’ not found or invalid function name in /home/gopocc/public_html/wp-includes/plugin.php on line 571演示 http://www.924.me

    _柳城 回复:

    再次更新了。1.6.4

    够意思 回复:

    OK了

    _柳城 回复:

    发现了,更新了。

    似水流年 回复:

    在吗,刚刚更新到了.16.4版本现在导致我评论出问题了 本来是点击评论提示评论成功,现在点击评论提示生成百度xml成功b0c697e7jw1eo1c7m815nj20ft038t8u.jpg,急求解决办法

    _柳城 回复:

    我看看。

  82. sys says:

    上条发错了,是:html网站地图可以也定义名称为 sitemap_baidu.html吗

    _柳城 回复:

    html不行啊,目前只是XML

    sys 回复:

    生成的sitemap.html不能访问,打开就是404,运行在BAE上面,为什么啊

    sys 回复:

    生成的sitemap.html不能访问,打开就是404,我的博客运行在BAE上面,为请问什么啊,我按照有个叫gimhoy博主的方法,sitemap_html.php文件放到根目录就可以生成

  83. 赚钱吧 says:

    如何去掉站点地图页面衔接下边的下划线呢?博客文章的下划线在CSS里边去掉了,但是站点地图里边的怎么去不掉呢?希望博主指点下,谢谢。

  84. 慕名堂 says:

    不能生成 http://网站域名/portfolio/……下面的文章地图,百度也一直没能收录portfolio/……下面的页面,求解!感谢!!!

    _柳城 回复:

    portfolio是啥??

    慕名堂 回复:

    买的汉化中文主题,有个portfolio作品集页面,所有的作品文章都在这个路径下面,插件不能生成作品的链接,柳城帮忙看看!感谢!!http://mumta.cn/archivers/

    _柳城 回复:

    这个暂时是不行,不确定portfolio的数据存在哪个数据表~~

  85. Ganudvo says:

    提交到百度和搜狗站长工具里,xml的格式出错了老大

    _柳城 回复:

    给个链接看看

    Ganudvo 回复:

    解决了,少了一个data的标签,可以参考我的xml改进插件 http://www.csplus.cn/sitemap.xml

    Ganudvo 回复:

    有需要修改的朋友可以微博私信我,帮助修改

    Ganudvo 回复:

    现在百度和搜狗要求对应移动端和PC段,但是我的是自适应的,所以移动端和PC的地址设置是一样的

  86. 更新 says:

    此款插件使用很久了,很棒的一款插件!就是安装插件后发布文章会比不安装的时候卡上N秒才能完成发布,当后台评论数达到20多条审批时候会很卡,还白版出错,没安装插件之前没问题,希望Baidu Sitemap插件越来越完善!

  87. 茶趣语录网 says:

    柳老师,很久没有更新了,现在百度站长平台有个移动端适配,期待柳老师能更新的时候考虑加一加这功能

  88. php爱好者er says:

    这个问题怎么解决 谢谢Warning: file_put_contents(saestor://wordpress/sitemap_baidu.xml) [function.file-put-contents]: failed to open stream: No such file or directory in /data/home/qxu1649260458/htdocs/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 288Warning: file_put_contents(saestor://wordpress/sitemap.html) [function.file-put-contents]: failed to open stream: No such file or directory in /data/home/qxu1649260458/htdocs/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 379

  89. 王森 says:

    Warning: file_put_contents(saestor://wordpress/sitemap_baidu.xml) [function.file-put-contents]: failed to open stream: No such file or directory in /data/home/qxu1591240352/htdocs/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 288Warning: file_put_contents(saestor://wordpress/sitemap.html) [function.file-put-contents]: failed to open stream: No such file or directory in /data/home/qxu1591240352/htdocs/wp-content/plugins/baidu-sitemap-generator/baidu_sitemap.php on line 379后台出现这个是神马情况 http://www.51zan.cc

    80客栈网赚 回复:

    我也遇到同样的问题,不知道你解决了没有。。。

  90. 小刀鱼 says:

    柳城前辈,使用你这个插件很久了,效果不错。如果这个插件能再多个功能就好了,生成的sitemap.html页面里 有tag列表,这个tag标签能不能单独提取出来呢 tag标签单独生成一个tag.html的页面(里面包含所有网站所有标签) ,就像生成的地图页面sitemap.html这样 。

  91. Finnson says:

    wordpress 4.3不能生成xml和html阿。。。。提示生成了。。。其实啥也没有。我的安装目录是ip/blog/ 用主目录跳转子目录的。lnmp求解。。。。。求更新。。。。

  92. X·舞~V~ says:

    朋友喝醉了说梦话。自己一个人。模仿两个角色,先模仿A唱歌…;接着(模仿)B说要:太素,要听黄的;A又开始唱“十八摸”刚唱了半截,卡壳了。紧接着B就说:太黄太爆力!这时候A火了:你究竟想让劳资怎么唱么?怎么唱么?好担心,会不会打起来…

  93. www.xyybk.com says:

    wordpress用定时发送文章,怎么站点地图中不是最新发布的文章在最前面呢?www.xyybk.com

  94. 希望改好定时发布的日期 says:

    提前写好一些文章,用定时发布,但是xml中的文章时间是写文章的日期,不是发布的日期。
    其实要是能检查文章的发布日期和修改日期,来个判断,看哪个日期最新,就用最新的。这样就好了。
    定时发布的时候,对于不会修改的文章,就用发布的日期吧。
    目前自己琢磨了一下,改了一下代码,全部换成文章的发布日期了。但是还是希望作者改好这个功能。谢谢!

  95. ansenleo says:

    谢谢作者,非常好的一个插件,已经开始使用。
    但是使用后发布文章,页面就不会自动跳转了。弹出502错误,关闭后就又正常。

    【www.chapaofan.com 泡饭影视,www.shafa99.com 沙发影视】

  96. 剑心通明 says:

    改了域名以后,生成的xml文件里面的网址还是以前的域名,我都把文件删除了让它重新生成还不行,怎么回事?

  97. 魅离儿 says:

    插件生成的代码无移动自适配,建议加一句:见http://zhanzhang.baidu.com/college/documentinfo?id=481&page=4

  98. 野战风 says:

    WP 4.4版本,不能生成XML文件啊!!点击update XML file后,就出来一空白页,没反应了。柳大师,求更新!!!

  99. www.diaosuok.com says:

    查看博客首页 如果可以改成查看网站首页就更好了 因为也有很多企业网站用WordPress

  100. SmallSea says:

    插件怎么恢复默认设置,不用打开插件直接恢复默认设置。我删除插件重新安装还是之前的设置。

  101. www.myhz.com says:

    建议:sitemap.xml的命名方式为 sitemap_[域名变量].xml,因为wordpress mu可能有很多网站,很多域名,都用到这个插件。

引用通告 & 通告

  1. The Birch of the Shadow

    I believe there could become a number of duplicates, but an exceedingly handy record! I’ve tweeted this. Numerous thanks for sharing!

  2. over here说道:

    Third Flower

    My spouse and that i happen to be now delighted that Albert could execute his scientific studies as a consequence of the ideas he had by means of your web content. It truly is on occasion perplexing to just normally be giving away measures which lots o…

  3. alkaline water说道:

    Healing’s Dragon

    to find problems to improve my site!I suppose its ok to make use of a few of your respective ideas!!

  4. Thorn of Girl

    Excellent information may be observed on this web blog site.

  5. Third Flower

    My wife and that i are already now delighted that Albert could execute his scientific tests due to the tips he had by means of your online page. It really is every now and then perplexing to simply normally be gifting away measures which a number of pe…

  6. water ionizer说道:

    Healing’s Dragon

    to locate matters to further improve my web page!I suppose its okay to make utilization of a handful of of one’s concepts!!

  7. The Slave of the Husband

    Trying to get forward to studying more from you afterward!…

  8. Souls in the Waves

    Fantastic Morning, I just stopped in to go to your website and believed I would say I liked myself.

  9. The Absent Game

    In between me and my husband we have owned a lot more MP3 gamers over time than I can count, which include Sansas, iRivers, iPods (classic & touch), the Ibiza Rhapsody, etc. But, the last few years I’ve settled down to one line of gamers.

  10. house blue说道:

    Thorn of Girl

    Great data is often found on this internet web site.

  11. plumbers depot说道:

    Woman of Alien

    Best work you’ve carried out, this website is absolutely amazing with wonderful information. Time is God’s way of keeping anything from going on simultaneously.

  12. Third Flower

    My wife and i are already now delighted that Albert could perform his scientific tests because of the suggestions he had as a result of your web page. It really is every so often perplexing to only normally be making a gift of measures which many peopl…

  13. click here说道:

    Whispering Misty

    So sorry you can expect to pass up the workshop!

  14. Third Flower

    My wife and that i are now delighted that Albert could carry out his scientific studies due to the tips he had by your website. It can be once in a while perplexing to simply usually be freely giving methods which some people could have been providing.…

  15. Coping with HIV Infection: Psychological and Existential Responses in Gay Men (Aids Prevention and Mental Health)

    This volume is the first long-term study of how gay men adjust to and cope with HIV disease. It examines the adjustment and existential issues which arise

  16. Thorn of Girl

    Great facts could be observed on this net weblog.

  17. Healing’s Dragon

    to discover difficulties to further improve my internet site!I suppose its ok to generate use of a handful of of your concepts!!

  18. parking说道:

    The Birch of the Shadow

    I think there might become a couple of duplicates, but an exceedingly useful listing! I’ve tweeted this. Several thanks for sharing!

  19. pay day loans说道:

    Whispering Misty

    So sorry you can miss the workshop!

  20. parking说道:

    The Absent Game

    Amongst me and my husband we’ve owned more MP3 players over the years than I can count, which include Sansas, iRivers, iPods (classic & touch), the Ibiza Rhapsody, etc. But, the last few ages I’ve settled down to one line of players.

  21. water ionizer说道:

    Souls in the Waves

    Great Morning, I just stopped in to visit your internet site and thought I’d say I experienced myself.

  22. Blue Coaster33说道:

    The Ships’s Voyages

    I think technological know-how just can make it worse. Now there is a channel to never care, now there is not going to become a opportunity for them to find.

评论已关闭。