XML Sitemaps Generator

Author Topic: Error loading stylesheet problem after setting up Cron Job  (Read 10561 times)

billing103

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Error loading stylesheet problem after setting up Cron Job
« on: August 31, 2010, 12:29:19 PM »
When I run the standalone Sitemap Generator on my site and then visit [external links are visible to admins only], 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="[external links are visible to admins only]"?>

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="[external links are visible to admins only]"?>

Please inform me as to how I can correct this inconsistency.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
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.

billing103

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: Error loading stylesheet problem after setting up Cron Job
« Reply #2 on: September 01, 2010, 01:43:59 PM »
That did the trick. Thanks!

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2