Conjobs command error

Conjobs command error

Monday 03 November 2003 8:41:46 am - 6 replies

Author Message

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

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.