Forums / General / Problem with cronjob

Problem with cronjob

Author Message

christian bencivenni

Saturday 23 February 2008 8:50:59 am

Hello.
I'm searching a way to configure some cronjobs of mines.
Now I'm making some tries with the official cronjobs of ez 3.10 installation.
I tried creating a cronjob.ini.append.php in the settings/siteaccess/ita folder with the following lines:

[CronjobPart-move]
Scripts[]=unpublish.php

the I open a shell window and from the ez publish directory I type:

php runcronjobs.php move -s ita

ThenI receive an error message:

/home/xtian/3.10.0$ php runcronjobs.php move -s ita
Running cronjob part 'move'
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.
Running cronjobs/unpublish.php
Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in /home/xtian/3.10.0/kernel/classes/ezcontentobject.php on line 1340

Someone can tell me why?

christian bencivenni

Saturday 23 February 2008 9:04:27 am

I also add:

[UnpublishSettings]
RootNodeList[]=2
ClassList[]=38

in the content.ini.append.php.

Andreas Kaiser

Monday 25 February 2008 5:00:42 am

Having same/similar error with "archive cronjob" contribution and ezp4.


Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in /kernel/classes/ezcontentobject.php on line 1339

I will make some test to see if I find out...

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

christian bencivenni

Monday 25 February 2008 5:18:41 am

Probably something is changed with new releases of ez 3.10 and 4.0.
Let me know if you find something.
Now I'm trying to change the unpublish.php code to understand where is the error source.

christian bencivenni

Saturday 01 March 2008 7:06:32 am

No one can help us?
I add:

[UnpublishSettings]
RootNodeList[]=2
ClassList[]=38
ClassList[]=16

in content.ini.append.php in ezwebin settings directory.
Is it to move in another one?

christian bencivenni

Tuesday 04 March 2008 8:06:30 am

problem resolved. It's a PHP foult.
It works using:

php4 runcronjobs.php move -s ita

Jorge estévez

Wednesday 17 February 2010 3:20:42 am

Hello,

I also need an unhide.php, can you please help me with the code to unhide folders in my site. Please see my post at http://share.ez.no/forums/developer/cronjobs-hide-unhide/comment57112

Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com