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

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 14:57:41
Script start
Timing: Jan 18 2025 14:57:41
Module start 'layout'
Timing: Jan 18 2025 14:57:41
Module start 'content'
Timing: Jan 18 2025 14:57:42
Module end 'content'
Timing: Jan 18 2025 14:57:42
Script end

Main resources:

Total runtime1.0622 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.7891152.6094
Module start 'layout' 0.00660.0027 740.398439.4297
Module start 'content' 0.00931.0514 779.8281617.1953
Module end 'content' 1.06070.0013 1,397.023416.1875
Script end 1.0620  1,413.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3272160.0002
Check MTime0.00130.1246160.0001
Mysql Total
Database connection0.00130.120410.0013
Mysqli_queries0.998293.9771710.0141
Looping result0.00080.0740690.0000
Template Total1.030797.020.5154
Template load0.00200.184720.0010
Template processing1.028796.852820.5144
Template load and register function0.00020.018210.0002
states
state_id_array0.00120.116110.0012
state_identifier_array0.00080.075220.0004
Override
Cache load0.00170.1604400.0000
Sytem overhead
Fetch class attribute can translate value0.00160.148530.0005
Fetch class attribute name0.00290.271780.0004
XML
Image XML parsing0.00100.094230.0003
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00090.0813160.0001
String conversion0.00000.000840.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
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs