Adham Posted January 31, 2006 Share Posted January 31, 2006 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? Quote Link to comment Share on other sites More sharing options...
clive Posted February 4, 2006 Share Posted February 4, 2006 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: Quote Link to comment Share on other sites More sharing options...
clive Posted February 5, 2006 Share Posted February 5, 2006 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: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.