Jump to content
Sign in to follow this  
Adham

GoogleSiteMap Cron Problem

Recommended Posts

Upon testing the GoogleSiteMaps, everything seems to be working fine; the xml pages are all created fine etc.

 

So, the Cron job was set up and this is what we get:

 

PHP Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/findwatc/public_html/googlesitemap/index.php on line 46

 

Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/findwatc/public_html/googlesitemap/index.php on line 46 PHP Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/findwatc/public_html/googlesitemap/index.php on line 46

 

Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/findwatc/public_html/googlesitemap/index.php on line 46

 

Obviously the page was found OK and it works fine when we test it, not changes have been made to the code in googlesitemap/index.php.

 

Can anyone offer any light on this?

Share this post


Link to post
Share on other sites
Upon testing the GoogleSiteMaps, everything seems to be working fine; the xml pages are all created fine etc.

 

So, the Cron job was set up and this is what we get:

 

PHP Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/findwatc/public_html/googlesitemap/index.php on line 46

 

Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/findwatc/public_html/googlesitemap/index.php on line 46 PHP Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/findwatc/public_html/googlesitemap/index.php on line 46

 

Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/findwatc/public_html/googlesitemap/index.php on line 46

 

Obviously the page was found OK and it works fine when we test it, not changes have been made to the code in googlesitemap/index.php.

 

Can anyone offer any light on this?

 

Did you sort this out?

 

I have exactly the same problem and cannot resolve it. :blush:

Share this post


Link to post
Share on other sites
Did you sort this out?

 

I have exactly the same problem and cannot resolve it. :blush:

 

Sorted it.

 

In googlesitemaps/index.php. Add to all the filename calls the full path to the index file.

 

ie:

require_once(DIR_WS_INCLUDES . 'filenames.php');

to:

require_once('/the/absolut/path/on/yr/server/to/inclufes/filenames.php');

 

this then works the cron job :rolleyes:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×