Cronjob error

Author Message

Børge Warvik

Thursday 20 April 2006 3:08:44 am

I've setup the crontab and got it to work fine when I typed:

php runcronjob.php -d

in Terminal. I did that twice and i worked fine.

Then suddenly I get this error:

Could not open input file: -.

I can't find a post with this message on this forum. Any ideas anyone?

Børge Warvik

Thursday 20 April 2006 3:13:05 am

Found the problem. Opened the runcronjob.php and somehow the text in the file had changed to:

Could not open input file: -.

Strange, somebody nows why that could happend?

Saravanan .R

Thursday 20 April 2006 5:31:04 am

Hi Borge,

I think ur installed in WINDOWS.

For your problem did u set the PHP CLI path. If ur not setting the PHP CLI it shows error like this.

So Set the PATH in ENVIRONMENT Variables

System Properties -> Environment Variables -> System Variables -> Path 
add end of the Path PROPERTIES as C:\php4.3.4\cli\;

Saravanan .R

Thursday 20 April 2006 5:34:02 am

Hi Borge

You may execute the CRON JOB like as follows:


php -q runcronjobs.php

Børge Warvik

Thursday 20 April 2006 6:23:59 am

Thanks for the answers, but I'm on LAMP so no problem there. As I said in the second post the problem was that the text inside the file runcronjob.php somehow changed to

Could not open the file: -.

But I just downloaded a fresh version of the file and replaced it with the old one and everything worked great!

Børge

Pratibha Gannavarapu

Sunday 23 April 2006 11:58:40 pm

Hi
I have setup a simple workflow process which all works good till the admin approves it. But even after approval the content does not get published. Now I came to know that I will have to execute the runcronjobs script. But when i try to do that on the CLI I get the error
Fatal error: Call to a member function on a non-object in /easy_pub/kernel/classes/ezworkflowprocess.php on line 429

Any other method to schedule the running of cron jobs on the browser does not work either. Though there is no errors the content is still not published.

Any help?!!!! I am really stuck here..
Cheers
Pratibha

Saravanan .R

Tuesday 25 April 2006 11:26:00 pm

Hi Pratibha,

Did u set the CLI PATH in ENVIRONMENT VARIABLES to run the CRON JOBS from the COMMAND LINE ?

thomas BAILLEUL

Tuesday 22 August 2006 2:51:24 am

I've exactly the same pb, I check the debug and have the error (*5):
"Error EzWorkflowType::attribute
attribute activation_date does not exist"

but the thing is that this attribute is correctly defined in the ezworkflow.php!
could u be more explicit about define the CLI path in the var environnements cos it changes nothing for me.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.