Path

ez projects / ezupgrade / forum / general / parse error


Parse error

You need to be logged in to post messages in the forums. New users may register here.

cliffp pratt

Member since:
31 March 2010

Posts: 6

Wednesday 27 October 2010 7:28:01 am

I'm getting a parse error as follows when I try to run eZUpgrade:



root@ak-lan-intranet-mig-01:/data/www/ezpublish/ezupgrade# /usr/local/apache2.2.8/php/bin/php ezupgrade user1


PHP Parse error: syntax error, unexpected ')', expecting '(' in /data/www/ezpublish/ezupgrade/classes/ezupgrade.php on line 716




PHP is as follows:



root@ak-lan-intranet-mig-01:/data/www/ezpublish/ezupgrade# /usr/local/apache2.2.8/php/bin/php --version


PHP 4.4.7 (cli) (built: Feb 27 2009 14:58:57)


Copyright (c) 1997-2007 The PHP Group


Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


   with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator




Any ideas what I'm doing wrong? The code is exactly as I checked it out. No modifications other than those in the install instructions.

Cheers,

Cliff
Up

Anders Berre

Member since:
09 January 2008

Posts: 23

Wednesday 27 October 2010 8:32:03 am

Hi Cliffp,

You need to run eZ Upgrade from an php 5 cli. I guess that is why you get the error.

Sincerely,

Anders Sandvik Berre
http://www.byte.no/

Up

cliffp pratt

Member since:
31 March 2010

Posts: 6

Wednesday 27 October 2010 10:11:14 am

Thank you Anders, I knew it would be something obvious. So I need PHP5 to upgrade and PHP4 to run eZ Publish (at least up to 3.10.1)?

Cheers,

Cliff
Up

Anders Berre

Member since:
09 January 2008

Posts: 23

Wednesday 27 October 2010 10:18:06 am

You need php5 to run eZ Upgrade, but if you are gonna upgrade an version of eZ running on php4 you might need a path to php4 as well.

You define both of them in ini files. Just remeber to use php5-cli when running ezupgrade.

Sincerely,

Anders Sandvik Berre
http://www.byte.no/

Up

You need to be logged in to post messages in the forums. New users may register here.