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