Still problem with Parse error:...

Author Message

Kamer Vishi

Thursday 15 October 2009 6:03:27 pm

Hi all,

I'm trying to install eZ Publish 4.1.4 on my domain, I have PHP v5.2.3.

But I got this error message:

<b>Parse error: syntax error, unexpected ',', expecting '(' in ... index.php on line 106</b>

Line 106: $logMap = array( 'notice' => eZDebug::LEVEL_NOTICE,

Can some body help me?

BR.

KVishi

Łukasz Serwatka

Friday 16 October 2009 12:12:51 am

Hi,

Are you sure about this PHP version? This looks like a PHP 4 related issue.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

André R.

Friday 16 October 2009 12:15:50 am

Class constants are not supported on PHP 4, so your basically running eZ Publish on PHP 4. Remember that php cli (command line) and php as used by webserver is uncoupled things. So it doesn't necessary means you have correct php version on web even if you have in in shell/cli using "php -v".

To correctly get your php version for your web server, rename index.php to something else and create a new index.php with the following:

<?php
phpinfo();
?>

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

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 19:16:58
Script start
Timing: Jan 18 2025 19:16:58
Module start 'layout'
Timing: Jan 18 2025 19:16:58
Module start 'content'
Timing: Jan 18 2025 19:16:59
Module end 'content'
Timing: Jan 18 2025 19:16:59
Script end

Main resources:

Total runtime0.7711 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9141152.6250
Module start 'layout' 0.00600.0032 740.539139.4609
Module start 'content' 0.00920.7604 780.0000578.1797
Module end 'content' 0.76950.0015 1,358.179712.1563
Script end 0.7710  1,370.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4106160.0002
Check MTime0.00130.1642160.0001
Mysql Total
Database connection0.00080.102310.0008
Mysqli_queries0.720193.3957590.0122
Looping result0.00070.0895570.0000
Template Total0.743396.420.3716
Template load0.00180.229620.0009
Template processing0.741596.162220.3707
Template load and register function0.00030.035910.0003
states
state_id_array0.00090.117610.0009
state_identifier_array0.00120.158520.0006
Override
Cache load0.00150.1963190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.069130.0002
Fetch class attribute name0.00120.161550.0002
XML
Image XML parsing0.00160.202830.0005
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00090.1136250.0000
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs