Forums / Developer / cronjobs - parse error

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

eZ debug

Timing: Jan 20 2025 23:26:50
Script start
Timing: Jan 20 2025 23:26:50
Module start 'content'
Timing: Jan 20 2025 23:26:50
Module end 'content'
Timing: Jan 20 2025 23:26:50
Script end

Main resources:

Total runtime0.1824 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.7266180.8438
Module start 'content' 0.00660.0067 769.5703101.9609
Module end 'content' 0.01330.1690 871.5313531.0000
Script end 0.1823  1,402.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.0413200.0002
Check MTime0.00150.7985200.0001
Mysql Total
Database connection0.00120.657410.0012
Mysqli_queries0.123767.83121410.0009
Looping result0.00170.94111390.0000
Template Total0.168692.410.1686
Template load0.00100.523710.0010
Template processing0.167691.895110.1676
Override
Cache load0.00070.373310.0007
Sytem overhead
Fetch class attribute can translate value0.00120.639410.0012
XML
Image XML parsing0.00030.155210.0003
General
dbfile0.00824.5038200.0004
String conversion0.00000.002930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs