Page 1 of 1

Cron job fails

PostPosted: Thu Dec 06, 2012 2:29 pm
by Juho
When I execute the cron job, it delivers following "failed" notification:

cron.php: line 1: ?php: No such file or directory
cron.php: line 3: /***************************************************************************: No such file or directory
cron.php: line 4: syntax error near unexpected token `('
cron.php: line 4: ` * Copyright (C) 2009-2011 by Geo Varghese(www.seofreetools.net) *'

What could be done to fix this?

Re: Cron job fails

PostPosted: Thu Dec 06, 2012 7:55 pm
by seopanel_forum
Please provide screen shot of your cron job. Let me check it.

Re: Cron job fails

PostPosted: Thu Dec 06, 2012 8:38 pm
by Juho

Re: Cron job fails

PostPosted: Thu Dec 06, 2012 9:27 pm
by Juho
I noticed that I haven't added the "php" at the beginning of the cron command. Now I did add it and there is no errors, but I don't see any results either.

Re: Cron job fails

PostPosted: Fri Dec 07, 2012 9:31 am
by Juho
Problem goes on. Cron job has started on two occasions at it's own, at a time that makes no sense. Could it be because of the seopanel thinks it is 8 november, or at least it is the scheduled next crawl? It has been able to crawl data, but all Bing crawls have failed and also one yahoo crawl. All Google crawls have succeeded.

But at the end of the message I get this: <p class='note error'><p>The database tables could not be found.</p><p><a href="install/index.php">Click here to install Seo Panel.</a></p></p>"

How there could not be tables, because when I do the crawl manually through browser, it works and there is data?

Re: Cron job fails

PostPosted: Fri Dec 07, 2012 9:34 am
by seopanel_forum
Please tell me which version of seo panel you are using?

Re: Cron job fails

PostPosted: Fri Dec 07, 2012 9:46 am
by Juho

Re: Cron job fails

PostPosted: Fri Dec 07, 2012 9:55 am
by seopanel_forum
oh okay. Then try this


Re: Cron job fails

PostPosted: Fri Dec 07, 2012 9:58 am
by Juho
OK, I commented it out and I will test it. I will post the results to the linked thread.

Cron job fails

PostPosted: Fri Sep 25, 2015 5:03 am
by KleinerP
It is probably a path problem. When run from the browser, all paths are relative to how the webserver views the file system.

When running from cron, the real file system paths are being used.