Forums / Install & configuration / error while upgrading from 3.10.0 to 3.10.1

error while upgrading from 3.10.0 to 3.10.1

Author Message

tic 9

Thursday 04 December 2008 2:38:19 am

Hi,
I'm upgrading from 3.10.0 to 3.10.1.
When I try to run

 php update/common/scripts/3.10/fixobjectremoteid.php -s fr
 

There this error

Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in /var/www/ezpublish-3.10.1/kernel/classes/ezcontentobject.php on line 1418
 

and on line 1418, I have this function

.....
     function clone()
    {
        $contentObject = $this;
        $contentObject->setAttribute( 'id', null );
        $contentObject->setAttribute( 'published', time() );
        $contentObject->setAttribute( 'modified', time() );
        return $contentObject;
    }
...
 

What can I do?

Alexandre Cunha

Saturday 10 January 2009 3:51:05 am

Well, same problem here.

I need upgrade from 3.10 to 4.x and an upgrade from 3.10 to 3.10.1 is required.

Your post is one month older. Have you find any solution?

http://AlexandreCunha.com

chris tian

Tuesday 19 May 2009 5:09:09 am

I got the same problem today.

I decided to pass this step after verifying directly in my database that there was no double remote_id in ezcontentobject.

Then when I reached step 3 (Running the 3.10 upgrade scripts), I got exactly the same error as before.

Finally, I opened Google, searching "unexpected T_CLONE", it seems this problem appears when you try to use a script which is not compatible with PHP5.

EZ Publish 3.9.x runs only with PHP4, and maybe its upgrade scripts too.

Hope this help :)

Créer un site internet : http://www.ouebmaestro.com

André R.

Tuesday 19 May 2009 6:02:29 am

> EZ Publish 3.9.x runs only with PHP4, and maybe its upgrade scripts too.

Correct, do not try to run eZ Publish 3.x scripts on php 5.

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