Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...