I would download the previous version and do a quick file compare using win merge or beyond compare. Hopefully it will pop right out.
Printable View
I would download the previous version and do a quick file compare using win merge or beyond compare. Hopefully it will pop right out.
The latest update is only updated for the author's own commercial product. There is no reason to use this version unless you are using this commercial product. IMHO ist should not even have been added to the code. He did not document it in the readme, and never ever made a comment in this thread.
This is not a SitemapXML problem. Check language and all extra files. I wrote a script that is looking for extra spaces in PHP files. It helps to detect bad files. You can download it https://goo.gl/88MtW2/ Unzip, upload to cart root directory and start it - http://your_domain/found_extra_space.php
Thanks a_berezin,
Ran your script and found the following files had space at the end:
template_default/sitemapxml/html_header.php
template_default/common/html_header.php
However, both files have this comment at the bottom, followed by 2 new lines:
<?php // NOTE: Blank line following is intended: ?>
Just for a test, I removed the extra line form both files. Made no difference.
Again, here is the output from the inline=yes parameter: Notice the space before the opening tag.
Here's the content of the root sitemap.xml for comparison:HTML Code:<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/includes/templates/template_default/css/gss.xsl"?>
<sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- generator="Zen-Cart SitemapXML" 3.2.13 20.08.2015 11:14:48 -->
<!-- sitemap.xml created at 2015-09-18 08:12:38 -->
<sitemap>
.
.
.
</sitemapindex>
What file(s) has the fix for the inline=yes that was mentioned in the plugin history?HTML Code:<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/includes/templates/template_default/css/gss.xsl"?>
<sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- generator="Zen-Cart SitemapXML" 3.2.13 20.08.2015 11:14:48 -->
<!-- sitemap.xml created at 2015-09-18 08:12:38 -->
<sitemap>
.
.
.
</sitemapindex>
Thank you!
You do not hear me. It is not sitemapxml problem, the problem somewhere else. It is necessary to search.
You can check a clean install 1.5.4 with sitemapxml - http://test15.zen-cart.zz/index.php?...yes&token=xxxx
Check the source code of your default page http://your_domain/ - have any white space at the beginning?
Try to disable gzip compression.
Finally got around to troubleshooting this. Turns out, when I added an extra ob_end_clean() to this statement within the sitemapxml.php class, it fixed my issue.
Seems as if there was an extra white space getting into the buffer. Maybe on_start() was getting call twice before hitting the first ob_end_clean()?PHP Code:
if ($this->inline) {
if ($this->submitFlag) {
ob_end_clean();
ob_end_clean();
$this->_outputSitemapIndex();
} else {
ob_end_flush();
}
}
Anyhow, inline is now working for me! :D
Thank you very much for making this plugin.
I am running ZC v1.5.4 and I just installed this plugin for the first time. I think I did everything correctly, however, the site map on the root is completely blank. There are site maps found for Categories, EZ pages, Products, Manufactures, and the main page. All of these are full of URLs. But the one found at example.com/sitemap.xml is completely blank. Can you please point me in the right direction?