Cronjobs command error...Please....help me...

Author Message

Ferdinando Orza

Monday 03 November 2003 8:44:31 am

Hi, i have a problem when i launch "php -C cronjobs.php"

I try to launch from /usr/bin/ in this way: "php -C /var/www/html/ezpublish3-2.1/cronjobs.php"
I get this:

<br />
<b>Warning</b>: Failed opening 'lib/ezutils/classes/ezini.php' for inclusion (include_path='.:/usr/share/pear') in <b>/var/www/html/ezpublish-3.2-1/lib/ezutils/classes/ezextension.php</b> on line <b>46</b><br />
<br />
<b>Warning</b>: Failed opening 'lib/ezutils/classes/ezdebug.php' for inclusion (include_path='.:/usr/share/pear') in <b>/var/www/html/ezpublish-3.2-1/lib/ezutils/classes/ezmodule.php</b> on line <b>44</b><br />
<br />
<b>Warning</b>: Failed opening 'lib/ezutils/classes/ezini.php' for inclusion (include_path='.:/usr/share/pear') in <b>/var/www/html/ezpublish-3.2-1/lib/ezutils/classes/ezcli.php</b> on line <b>59</b><br />
<br />
<b>Warning</b>: Failed opening 'lib/ezutils/classes/ezdebug.php' for inclusion (include_path='.:/usr/share/pear') in <b>/var/www/html/ezpublish-3.2-1/lib/ezutils/classes/ezcli.php</b> on line <b>60</b><br />
<br />
<b>Warning</b>: Failed opening 'lib/ezutils/classes/ezdebugsetting.php' for inclusion (include_path='.:/usr/share/pear') in <b>/var/www/html/ezpublish-3.2-1/lib/ezutils/classes/ezcli.php</b> on line <b>61</b><br />
<br />
<b>Warning</b>: Failed opening 'lib/ezutils/classes/ezcli.php' for inclusion (include_path='.:/usr/share/pear') in <b>/var/www/html/ezpublish-3.2-1/kernel/classes/ezscript.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: Failed opening 'lib/ezdb/classes/ezdb.php' for inclusion (include_path='.:/usr/share/pear') in <b>/var/www/html/ezpublish-3.2-1/kernel/classes/ezscript.php</b> on line <b>79</b><br />
<br />
<b>Fatal error</b>: Undefined class name 'ezdebug' in <b>/var/www/html/ezpublish-3.2-1/kernel/classes/ezscript.php</b> on line <b>120</b><br />

Please help me!!!

jm m

Monday 03 November 2003 10:01:57 am

hi,

try with this command:

GET http://yoursite.com/ezpublish/runcronjobs.php

I use this command and work fine ( I use cpanel)

sorry for my english

Ole Morten Halvorsen

Monday 03 November 2003 12:26:06 pm

You need to be in the eZ publish root directory when running the cronjobs.php script. Running it from /usr/bin will not work. So before running the script change directory to the ez publish directory.

Example: cd /var/www/html/ezpublish3-2.1/; php -C cronjobs.php

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Ferdinando Orza

Tuesday 04 November 2003 1:41:55 am

Sorry...Ole, but i already try in this way....
"cd /var/www/html/ezpublish3-2.1/; php -C cronjobs.php "
and i have another problem.......

<b>Notice</b>: Undefined variable: argv in <b>/var/www/html/ezpublish-3.2-1/runcronjobs.php</b> on line <b>103</b><br />
Running cronjobs/workflow.php
Checking for workflow processes
<br />
<b>Fatal error</b>: Call to a member function on a non-object in <b>/var/www/html/ezpublish-3.2-1/cronjobs/workflow.php</b> on line <b>107</b><br />

Fatal error: eZ publish did not finish it's request
The execution of eZ publish was abruptly ended, the debug output is present below.

Thank you

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 31 2025 01:25:19
Script start
Timing: Jan 31 2025 01:25:19
Module start 'layout'
Timing: Jan 31 2025 01:25:19
Module start 'content'
Timing: Jan 31 2025 01:25:19
Module end 'content'
Timing: Jan 31 2025 01:25:19
Script end

Main resources:

Total runtime0.0235 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.2578151.2266
Module start 'layout' 0.00440.0035 739.4844220.7344
Module start 'content' 0.00790.0140 960.21881,001.7578
Module end 'content' 0.02200.0015 1,961.976633.9922
Script end 0.0235  1,995.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.5928140.0002
Check MTime0.00114.7129140.0001
Mysql Total
Database connection0.00062.642010.0006
Mysqli_queries0.00208.495130.0007
Looping result0.00000.063810.0000
Template Total0.00114.710.0011
Template load0.00093.754910.0009
Template processing0.00020.888110.0002
Override
Cache load0.00062.624810.0006
General
dbfile0.00145.784280.0002
String conversion0.00000.025340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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