When I browse http://www.mysite.com/sitemap.php I am getting the results as sitemaps below:
<?xml version="1.0" encoding="UTF-8" ?>
- <sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/siteindex.xsd">
- <sitemap>
<loc>http://www.cheepfinder.com/sitemap.php?filename=armoni_homeware.xml</loc>
<lastmod>2010-08-17</lastmod>
</sitemap>
...
...
...
But I am getting the following error message when I browse any sitemap link e.g. "http://www.cheepfinder.com/sitemap.php?filename=armoni_homeware.xml" generated by the sitemap.php:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Only one top level element is allowed in an XML document. Error processing resource 'http://www.cheepfinder.com/sitemap.php...
<b>Notice</b>: Undefined index: start in <b>/home/cheepfinder/cheepfinder.com/sitemap.php</b> on l...
Hi kempo,
This is to do with PHP being configured to display debug warning messages on your server - check for the following code at line 12 in sitemap.php:
$start = ($_GET["start"]?$_GET["start"]:0);
...and REPLACE that with;
$start = (isset($_GET["start"])?intval($_GET["start"]):0);
Cheers,
David.
--
PriceTapestry.com