Error loading stylesheet problem after setting up Cron Job
« on: August 31, 2010, 01:29:19 PM »
When I run the standalone Sitemap Generator on my site and then visit http://www.myurl.com/sitemap.xml, I am able to view it fine. However, when a sitemap is generated via Cron Job and then I visit sitemap.xml I get the following error:

Error loading stylesheet: A network error occured loading an XSLT stylesheet:http://www.myurl.com/home/dogged/public_html/generator/pages/mods/sitemap.xsl

The difference is that when the generator is run manually it produces the following reference to the stylesheet (with the correct location for the stylesheet):
<?xml-stylesheet type="text/xsl" href="http://www.myurl.com/generator/pages/mods/sitemap.xsl"?>

But when it is run via Cron Job it produces this (with an incorrect location for the stylesheet, resulting in the error):
<?xml-stylesheet type="text/xsl" href="http://www.myurl.com/home/dogged/public_html/generator/pages/mods/sitemap.xsl"?>

Please inform me as to how I can correct this inconsistency.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.
Re: Error loading stylesheet problem after setting up Cron Job
« Reply #2 on: September 01, 2010, 02:43:59 PM »
That did the trick. Thanks!