cronjobs - parse error

Author Message

Thiago Campos Viana

Wednesday 24 October 2007 7:52:20 am

hello

I can´t run the cronjobs script because of this error:

Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /var/www/ideais/pdpnet/kernel/classes/ezcontentclass.php on line 175

I have changed the languages of the objects in Database, so I changed the content language table, but I have problems with classes, but I add a new line in the table of the content language with the information of the old language and the I didnt´t have anymore problems.

I have:
eZ publish version is 3.9.2.
PHP Version 4.4.2-1build1
Apache/2.0.54 (Ubuntu) DAV/2 SVN/1.2.0 mod_jk/1.2.14 mod_python/3.1.4 Python/2.4.2 PHP/4.4.2-1build1 proxy_html/2.4 mod_ssl/2.0.54 OpenSSL/0.9.7g
eAccelerator: 0.9.5.1
MySQL: 5.0.22

Could anyone help me?

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

André R.

Wednesday 24 October 2007 11:14:14 am

There wasn't any parser errors in 3.9.2 last time I used it, and ezcontentclass.php is used a lot of places so I think I should have noticed.

Try to update to 3.9.4, it's a pretty straightforward update.
If the problem persist post the code that is causing the error.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Thiago Campos Viana

Wednesday 07 November 2007 7:54:47 am

I´ve updated to version 3.9.4 and I got the error:

Running cronjobs/unpublish.php

Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /var/www/ideais/pdpnet/kernel/classes/ezcontentobject.php on line 1339

Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

Could somebody help?

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

André R.

Wednesday 07 November 2007 8:17:51 am

Seems like you are running cronjobs with php 5.

Check version with :

php -v

If there is a cli version of php4 installed its probably 'php4' command you want to use (check with your hosting provider / server admin).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Thiago Campos Viana

Thursday 08 November 2007 6:05:30 am

You're right....

now I got this error:

php4 runcronjobs.php
Error initializing script: database error: .

debug:

#################################### DEBUG ####################################
Warning: (eZMySQLDB)
MySQL extension was not found, the DB handler will not be initialized.

Total script time: 0.0283 sec

....
I think this is a problem with php4, I will search for some more information...

thx

=(

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

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 21 2025 02:55:45
Script start
Timing: Jan 21 2025 02:55:45
Module start 'layout'
Timing: Jan 21 2025 02:55:45
Module start 'content'
Timing: Jan 21 2025 02:55:47
Module end 'content'
Timing: Jan 21 2025 02:55:47
Script end

Main resources:

Total runtime1.4159 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.8203151.1953
Module start 'layout' 0.00620.0022 739.015636.6172
Module start 'content' 0.00841.4067 775.6328608.3828
Module end 'content' 1.41510.0007 1,384.015615.8750
Script end 1.4158  1,399.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2068160.0002
Check MTime0.00120.0836160.0001
Mysql Total
Database connection0.00130.093510.0013
Mysqli_queries1.338194.5067630.0212
Looping result0.00060.0419610.0000
Template Total1.381897.620.6909
Template load0.00240.171220.0012
Template processing1.379497.424020.6897
Template load and register function0.00020.012710.0002
states
state_id_array0.00080.056410.0008
state_identifier_array0.00090.065020.0005
Override
Cache load0.00200.1397490.0000
Sytem overhead
Fetch class attribute can translate value0.00060.040820.0003
Fetch class attribute name0.00110.079270.0002
XML
Image XML parsing0.00910.641120.0045
class_abstraction
Instantiating content class attribute0.00000.0017100.0000
General
dbfile0.01060.7462230.0005
String conversion0.00000.000340.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs