Forums / Setup & design / Still problem with Parse error:...
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