RedQueen Posted November 29, 2009 Posted November 29, 2009 i have tried everything and still they are not working although i can run them all manually without any errors i was told to try time stamps but i get an error when trying to install them the sql and that go fine but when i try the site i have errors on the cron file.php file n i looked at the erros tis is what it says Fatal error: Call to a member function configure() on a non-object in /home/redqueen/public_html/crons_file.php on line 5 which says this on that line $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database']); any help would be appreciated thank you Quote
snailian Posted November 30, 2009 Posted November 30, 2009 It looks like you are having trouble with including the file that stores your database config information. When you access the file via a web browser, the config file is included as you intended. When you access the file as a cronjob, relative paths don't work very well. Cron will try and include the config file using the paths stored in the user's $PATH system variable. Simple fix: Copy the $_CONFIG declarations from your database config file into the file being called by the cronjob and you should be set. Quote
RedQueen Posted November 30, 2009 Author Posted November 30, 2009 lmbo ok well i am a total noobie to all of this would you mind terribly explaining tat a little more simpler for me i know it sounds simple but i have no idea what you are talking about except the config.php file that has the db info in it lol i do not understand what the config declarations would be sorry i am totally new i appreciate any and all help thank you Quote
RedQueen Posted December 1, 2009 Author Posted December 1, 2009 ok so took the time stamps out and went back to te normal crons i set them up to send me a email which i get this in the email curl: (6) Couldn't resolve host 'www.**********.com' what the heck does that mean n how do i fix it ? this has been resolved was a problem on my servers end thank you Quote
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.