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

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 16:25:47
Script start
Timing: Jan 18 2025 16:25:47
Module start 'layout'
Timing: Jan 18 2025 16:25:47
Module start 'content'
Timing: Jan 18 2025 16:25:48
Module end 'content'
Timing: Jan 18 2025 16:25:48
Script end

Main resources:

Total runtime0.6721 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.0313152.6250
Module start 'layout' 0.00700.0037 741.656339.4609
Module start 'content' 0.01060.6601 781.1172670.6484
Module end 'content' 0.67070.0013 1,451.765616.1719
Script end 0.6721  1,467.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5373160.0002
Check MTime0.00160.2308160.0001
Mysql Total
Database connection0.00110.171010.0011
Mysqli_queries0.608290.4976730.0083
Looping result0.00090.1280710.0000
Template Total0.638695.020.3193
Template load0.00210.306720.0010
Template processing0.636594.706720.3183
Template load and register function0.00010.020710.0001
states
state_id_array0.00130.186310.0013
state_identifier_array0.00100.146920.0005
Override
Cache load0.00180.2706600.0000
Sytem overhead
Fetch class attribute can translate value0.00080.113140.0002
Fetch class attribute name0.00130.195190.0001
XML
Image XML parsing0.00130.194540.0003
class_abstraction
Instantiating content class attribute0.00000.002990.0000
General
dbfile0.00110.1574230.0000
String conversion0.00000.001640.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 6

Time used to render debug report: 0.0001 secs