sitemap error

dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: sitemap error

Post by dakini »

OMG now this:

XML Parsing Error: not well-formed
Location: http://domain.tld/scj/sitemap.php
Line Number 3, Column 19: <loc>http://<?=$_SERVER['HTTP_HOST']?>/index.html</loc>
------------------^
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sitemap error

Post by admin »

<?=$_SERVER['HTTP_HOST']?>

you didn't set short tags on.

change <?=$_SERVER['HTTP_HOST']?> to <?php echo $_SERVER['HTTP_HOST']?>
Don't forget to run script update
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

Re: sitemap error

Post by dakini »

Done, i made it
It was my mistake because when i searched in php.ini short_open_tag i found it commented, i have uncommented it and set value On but i didnt try to find it again, and now i searched again and found one uncommented with value Off, setted it On and now the sitemap is generating, but i have changed in .htaccess ^gallery/ ... to ^video/ it is possible to set the sitemap with the new value ^video/.. instead of ^gallery/.. because is generating with gallery.

Thank you for your fast support. Best and fasted support i have found here compared to other scripts
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sitemap error

Post by admin »

Thank you !

Yes, just edit templates and that's it.
Don't forget to run script update
Post Reply