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.

eZ debug

Timing: Jan 18 2025 22:29:19
Script start
Timing: Jan 18 2025 22:29:19
Module start 'layout'
Timing: Jan 18 2025 22:29:19
Module start 'content'
Timing: Jan 18 2025 22:29:21
Module end 'content'
Timing: Jan 18 2025 22:29:21
Script end

Main resources:

Total runtime1.2844 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.7891152.6094
Module start 'layout' 0.00610.0031 740.398439.4297
Module start 'content' 0.00921.2737 779.8281633.8672
Module end 'content' 1.28290.0014 1,413.695316.1953
Script end 1.2843  1,429.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2556160.0002
Check MTime0.00130.1022160.0001
Mysql Total
Database connection0.00120.089910.0012
Mysqli_queries1.215894.6587760.0160
Looping result0.00070.0551740.0000
Template Total1.242796.820.6214
Template load0.00200.157720.0010
Template processing1.240796.596220.6203
Template load and register function0.00010.008810.0001
states
state_id_array0.00320.246010.0032
state_identifier_array0.00190.151520.0010
Override
Cache load0.00180.1371480.0000
Sytem overhead
Fetch class attribute can translate value0.00080.062040.0002
Fetch class attribute name0.00100.075890.0001
XML
Image XML parsing0.00070.057840.0002
class_abstraction
Instantiating content class attribute0.00000.0032110.0000
General
dbfile0.00140.1067160.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs