Modules:sitemap stylesheet does not work

slart

Joined: 2013-11-11
Posts: 112
Posted: Fri, 2013-12-20 15:04

Hi, I have the module installed sitemap to my Gallery3, but it does not work.

I get an error message.

Quote:
Error loading stylesheet: An unknown error has occurred (805303f4)

In the source code but everything is there.

In the admin settings i become this error message:

Quote:
Could not update /customers/2/f/0/example.com/httpd.wwwrobots.txt

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Fri, 2013-12-20 16:24

I found the problem. I had the trouble with another page already.

open:
/modules/sitemap/controllers/admin_sitemap.php

change lines 167 to 171 with this lines:

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
$date
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
$locations</urlset>

Attention: the <urlset xmlns=" ... .xsd"> line must be only ONE (1) line.