Parse error line 121 on 4.0 with PHP5

Author Message

Lee Wallis

Tuesday 20 May 2008 6:22:00 am

Hey there guys,

I have tried to install 4.0 and get that parse error above...
Parse error: syntax error, unexpected ',', expecting '(' in /home/xxxx/public_html/index.php on line 121??

Any ideas? I am running PHP 5.2.5 and all the correct stuff to run this, I triple checked.

I have read the other forum posts about this, but there has been no solution to the fix on any of them for me.

Cheers.

André R.

Tuesday 20 May 2008 6:42:30 am

Line 121 contains a class constant ("eZDebug::LEVEL_NOTICE"), witch is a core php5 feature.
Rename index.php and create a new one with this content to see what php version you are really running:

<?php

phpversion();

?>

http://no.php.net/manual/en/language.oop5.constants.php

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

Lee Wallis

Tuesday 20 May 2008 6:49:06 am

Never mind, my web hosting company have given me false information!!!!!!!

Thanks for that! It's 4.4.8

Kristof Coomans

Tuesday 20 May 2008 7:25:18 am

Related to http://issues.ez.no/11722.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 19 2025 08:01:31
Script start
Timing: Jan 19 2025 08:01:31
Module start 'layout'
Timing: Jan 19 2025 08:01:31
Module start 'content'
Timing: Jan 19 2025 08:01:31
Module end 'content'
Timing: Jan 19 2025 08:01:31
Script end

Main resources:

Total runtime0.0228 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.2813152.6406
Module start 'layout' 0.00720.0047 741.921939.4922
Module start 'content' 0.01190.0074 781.414193.4922
Module end 'content' 0.01930.0034 874.906334.3047
Script end 0.0227  909.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.1419140.0002
Check MTime0.00135.6822140.0001
Mysql Total
Database connection0.00104.381910.0010
Mysqli_queries0.004419.513230.0015
Looping result0.00000.092210.0000
Template Total0.002812.510.0028
Template load0.00208.574210.0020
Template processing0.00093.889410.0009
Override
Cache load0.00146.179910.0014
General
dbfile0.002410.555580.0003
String conversion0.00000.048240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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