• Resolved 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.'”?>

    https://www.ads-software.com/extend/plugins/xml-sitemap-feed/

Viewing 15 replies - 1 through 15 (of 19 total)
  • 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.

    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 https://4visions.nl/contact/ ??

    Thread Starter 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.

    Thread Starter G

    (@gnetworkau)

    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!

    Thread Starter G

    (@gnetworkau)

    hacked again the 3.8.5

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

    @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.

    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.

    Thread Starter 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.

    Hi G, could you re-download https://downloads.www.ads-software.com/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 ??

    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 ‘[Plugin: XML Sitemap Feed] Stylesheet CSS problem?’ is closed to new replies.