Quote:
Originally Posted by cflsystems
So then it doesn't work 
|
You are correct sir!
Digging into this issue, (And I have discovered that it goes back at least to XC 5.1.

, I find that the root cause is this method:
XLite/Module/CDev/XMLSitemap/Controller/Customer/Sitemap.php
Code:
public function processRequest()
{
$generator = \XLite\Module\CDev\XMLSitemap\Logic\SitemapGenerator::getInstance();
if (!$generator->isGenerated() || $generator->isObsolete()) {
$generator->generate();
}
$index = intval(\XLite\Core\Request::getInstance()->index);
$content = $index ? $generator->getSitemap($index) : $generator->getIndex();
$this->displayContent($content);
}
Line 50: $index = intval(\XLite\Core\Request::getInstance()->index);
This^ always returns a 0 in my tests, and it needs to be a 1. The xml files are saved in the var/data directory and in every case I have examined (about a dozen) the file is invariably xmlsitemap.1.xml. Never 0.