WordPress.org

Support

Support » Plugins and Hacks » XML Sitemap & Google News feeds » [Resolved] [Plugin: XML Sitemap Feed] Stylesheet CSS problem?

[Resolved] [Plugin: XML Sitemap Feed] Stylesheet CSS problem?

  • G

    @gnetworkau

    When I updated to latest version of xml sitemap feed 3.8, on WordPress MU 3, I was getting error for stylesheet on all my sites. The sitemap would not show, just css error.

    I resolved this by replacing reference to stylesheet in ver 3.8, with that of my previous ver 3.6.1. Now all sitemaps work fine.

    Replace in ver 3.8, line 12:
    <?xml-stylesheet type=”text/xsl” href=”‘.XMLSF_PLUGIN_URL.’/sitemap.xsl.php?v=’.XMLSF_VERSION.’&uri=’.str_replace(get_option(‘home’),””,XMLSF_PLUGIN_URL).'”?>

    with this:
    <?xml-stylesheet type=”text/xsl” href=”‘.get_option(‘home’).’/’.str_replace(ABSPATH,””, XMLSF_PLUGIN_DIR).’/sitemap.xsl.php?v=’.XMLSF_VERSION.'”?>

    http://wordpress.org/extend/plugins/xml-sitemap-feed/

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author RavanH

    @ravanh

    Yes, there seems to be some problem with the & amp; in the stylesheet URL for some sites. Do you have any plugin like WP Minify or W3 Total Cache that enables minify on your site by any chance? As far as I can tell, that is the only commonality between the sites that show this problem.

    If you can give me a URL to your sitemap, I can take a look. Hopefully I can pin this weird issue 🙂

    I’m not using any minify plugin and am experiencing the issue as well. Still sorting out other legacy sitemap files so I’m not ready to give any links.

    Plugin Author RavanH

    @ravanh

    If you wish to keep the URL private but still would like me to take a look, you can send it to me via the contact form on http://4visions.nl/contact/ 🙂

    G

    @gnetworkau

    Thanks RavanH for your emails/tips, I tried the latest 3.8.3 but still had same problem. Reverted to my above hack, and it works fine.

    G

    @gnetworkau

    Plugin Author RavanH

    @ravanh

    In the latest revision, I’ve completely done away with that & part of the stylesheet URI so the next update should work for you without having to hack again 🙂

    Thanks for your input!

    G

    @gnetworkau

    hacked again the 3.8.5

    Just wanted to note that W3TC does not minify .xml files by default.

    Plugin Author RavanH

    @ravanh

    @frederick
    In the case of XML Sitemap Feed, it’s not a file but a feed… Does W3TC minify feeds?

    Only when the option is selected on the page cache settings tab and the XML is generated dynamically.

    Plugin Author RavanH

    @ravanh

    So that option is not set by default? Could you give me a (very) short description of which option (and where) a W3TC user should check to get caching of the dynamic XML feed? And I suppose that the cache is cleared upon each new publication?

    I do not use W3TC myself but I’d like to include it in the FAQ’s of XML Sitemap Feed 🙂

    There’s an checkbox option on the page cache settings tab to cache feeds. They will expire according to the expires field value on the browser cache setting for HTML.

    G

    @gnetworkau

    I tried hacking the new 3.8.7, no joy, same problem. I will stay with my hacked 3.8.5 for now.

    Plugin Author RavanH

    @ravanh

    Hi G, could you re-download http://downloads.wordpress.org/plugin/xml-sitemap-feed.3.8.7.zip (not the 3.8.7 version you downloaded before) and install that in your mu-plugins dir to see if it works now? If not, please wait with reverting to your hacked version and let me know so I can take a look at the incorrect URL output that is being generated… Thanks 🙂

    Plugin Author RavanH

    @ravanh

    I’ve (finally) been able to reproduce the problem on another server running Apache 2.2.3 and PHP 5.1.6 on linux CentOS (no idea which version)… Any similarities with the server you are using? This looks like a bug in the WP internal function plugins_url() when installed in mu-plugins 🙁

    If I can find any hints about why/when this is happening, I can file a bugreport.

    Meanwhile, I applied your hack to my plugin. The latest 3.8.7 should be working on your server too 🙂

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Resolved] [Plugin: XML Sitemap Feed] Stylesheet CSS problem?’ is closed to new replies.
Skip to toolbar