Forums / Setup & design / Cronjob error

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.

eZ debug

Timing: Jan 30 2025 19:50:43
Script start
Timing: Jan 30 2025 19:50:43
Module start 'content'
Timing: Jan 30 2025 19:50:43
Module end 'content'
Timing: Jan 30 2025 19:50:43
Script end

Main resources:

Total runtime0.2555 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.8203370.3125
Module start 'content' 0.00770.0168 958.13281,009.5938
Module end 'content' 0.02450.2310 1,967.72663,897.6406
Script end 0.2555  5,865.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00461.7941200.0002
Check MTime0.00130.5143200.0001
Mysql Total
Database connection0.00060.241810.0006
Mysqli_queries0.151959.43241410.0011
Looping result0.00170.67001390.0000
Template Total0.230590.210.2305
Template load0.00080.302910.0008
Template processing0.229789.902710.2297
Override
Cache load0.00050.197210.0005
Sytem overhead
Fetch class attribute can translate value0.00200.785410.0020
XML
Image XML parsing0.00030.120210.0003
General
dbfile0.00823.1972200.0004
String conversion0.00000.003130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs