This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Install & configuration » Conjobs command error
expandshrink

Conjobs command error

Conjobs command error

Monday 03 November 2003 5:41:46 pm - 6 replies

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!!!

Monday 03 November 2003 10: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 blunk.gif Emoticon

Tuesday 04 November 2003 10: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

Tuesday 04 November 2003 1:57:08 pm

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

Tuesday 04 November 2003 2:21:24 pm

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

Tuesday 04 November 2003 2:24:23 pm

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....

Wednesday 12 November 2003 6:42:50 pm

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from