Forums / Install & configuration / Conjobs command error

Conjobs command error

Author Message

Ferdinando Orza

Monday 03 November 2003 8:41:46 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!!!

Marco Zinn

Monday 03 November 2003 1:45:10 pm

I think, you must call the cronjobs.php from it's own directory.
So, create a script with

cd /var/www/html/
php -C cronjobs.php

I'm no unix or cronjob-guru, but the problem is, that the links in the script assume, that you are in "ezRoot" (/var/www/html/ in your case).
Tell us, if it worked ;)

Marco
http://www.hyperroad-design.com

Ferdinando Orza

Tuesday 04 November 2003 1:56:42 am

I have try....but it doesn't work in this way.....if i launch the comand "php -C runcronjobs.php" under my ezpublish folder i have an error.....i have this error:

<br />
<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

Paul Borgermans

Tuesday 04 November 2003 4:57:08 am

The workflow error is because of a bug in 3.2-x series (not solved in 3.2-3). Do you use the multiplexer event type? Did you start from a clean database?

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Ferdinando Orza

Tuesday 04 November 2003 5:21:24 am

Hi....thank to reply me......however..the db is not clean...and i use...a simple workflow to publish article....with one editor....e one article creator

Ferdinando Orza

Tuesday 04 November 2003 5:24:23 am

I see the file....and i try to change something only two lines...
Now....when i drop this line form workflow.php (line 107/108):

$bodyMementoData = $bodyMemento->data();
$mainMemento =& $bodyMemento->attribute( 'main_memento' );

I can execute "php -C runcronjobs.php" without error... but It doesn't public the process....

Jerry Jalava

Wednesday 12 November 2003 9:42:50 am

I don't know if this helps, but I ran my cronjobs in shell like this in ezroot -folder:
./runcronjobs.php

I have given the script 766 permission...

Regards,
Jerry

eZ debug

Timing: Jan 18 2025 11:07:11
Script start
Timing: Jan 18 2025 11:07:11
Module start 'content'
Timing: Jan 18 2025 11:07:11
Module end 'content'
Timing: Jan 18 2025 11:07:11
Script end

Main resources:

Total runtime0.1883 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.8438180.8359
Module start 'content' 0.00700.0073 769.6797101.8828
Module end 'content' 0.01430.1739 871.5625533.2813
Script end 0.1882  1,404.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.9239200.0002
Check MTime0.00140.7470200.0001
Mysql Total
Database connection0.00100.551310.0010
Mysqli_queries0.136672.54821410.0010
Looping result0.00150.77311390.0000
Template Total0.173592.210.1735
Template load0.00070.395210.0007
Template processing0.172891.759110.1728
Override
Cache load0.00050.286310.0005
Sytem overhead
Fetch class attribute can translate value0.00090.500310.0009
XML
Image XML parsing0.00030.137010.0003
General
dbfile0.00653.4771200.0003
String conversion0.00000.004130.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