how to do upgration from ez 3.3-2 to 4.x version ?

Author Message

Muhammad ADnan

Thursday 24 July 2008 11:14:15 pm

hi guys there ,
this is my first post in this forum , i m new to ezpublish . my boss said me to upgrade the 3.3-2 ez version to 4.x ..

NOTE : the important thing need to know is that , we have some custom coding in 3.3-2 . so , how it will work with 4.x .. i mean , how i will do upgrations .. i need to make it done asap .

i request to all top posters , plz help me .

is that easy to do ? then how ? any guides ?

thanks in advance
Regards
ADNan

Sander van den Akker

Friday 25 July 2008 12:05:38 am

Documentation on how to upgrade any version of eZ Publish can be found here: http://ez.no/doc/ez_publish/upgrading

As with every older version in the 3.x branch of eZ Publish you first need to upgrade to 3.10 in order to upgrade to 4.0.

Keep in mind that eZ Publish 4 requires php 5. In your case this means your custom code also needs to be php 5 ready (references!).

Good luck!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

André R.

Friday 25 July 2008 12:23:48 am

> we have some custom coding in 3.3-2 .

What kind of custom code?
Hacks or extensions?
And do you have an overview?

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

Muhammad ADnan

Friday 25 July 2008 10:09:36 pm

hi
i dont know what kind of custom code is here . may be hacks , i think so .
i have downloaded now 3.3-2 and also 4.0 version to do analysis .
but i m failed to install both .

3.3-2 version gives me error
Cannot re-assign $this in C:\AppServ\www\ez3\lib\ezutils\classes\ezdebug.php on line 192
$this =& eZDebug::instance();

and when i installed version 4.0 then it said ..strftime() function error . date and time zone settings error

so , how i can upgrade , so my custom code remains safe , plz

Kristof Coomans

Friday 25 July 2008 11:49:12 pm

Hi ADnan

eZ Publish 3.3 requires PHP 4.3. It does not work properly on newer versions of PHP.

As for the problem you have with installing eZ Publish 4, please carefully read the documentation and you will find the solution: http://ez.no/doc/ez_publish/technical_manual/4_0/installation/normal_installation/requirements_for_doing_a_normal_installation.

Good luck!

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

B. Nkengsong

Tuesday 29 July 2008 11:13:27 am

Hi guys,

The problem is realt and actual. Is there no project for implementing the migration on ez 3.x version to 4.x ?
I think if the project was launched, many could contribute for.

Thanks

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

Norman Leutner

Wednesday 30 July 2008 1:41:10 am

Hi guys,

we're having a project were we'll update a system from 3.1.1 to eZ 4.1 in Sep / Oct.
If anyone has a question regarding the update / best practice feel free to contact us.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

John Smith

Saturday 09 August 2008 11:46:51 am

Hi Norman,

I think you can help me,

In 3.6.1 version, I imported two classes from some other install but same version. So there were two classes, and another site style which I imported from my development pc, there were three packages...

This week I tried upgrading 3.6.1 to 4.0.0 with the following steps:

3.6.1. -> 3.8.0
3.8.0 -> 3.9.0
3.9.0 -> 3.10.0

After the upgrading to 3.10.0, the whole public and adminstration sites are working.

Two problems:

1. No packages in the Setup-> Packages....
2. In the Design -> Look and Feel section there is no sitestyle thumbnail.

Hope fully you can help me here.....

What about upgrade from 3.10.0 to 4.0.0 go well??? Any thing specific to be taken care of? Do I need to run again updateniceurls.php and udatetipafriendpolicy.php while upgrading??

In the documentation it not recommended to upgrade from 3.10.0 -> 4.0.0, insisting to wait for 4.0.1.

Cheers

André R.

Monday 11 August 2008 12:30:41 am

1. Please use latest version of a branch when you update, minor versions are bug fix versions..
2. site style is a package as well, did you remember to copy over the packages in the var folder? (var/storage/packages)

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

John Smith

Monday 11 August 2008 1:07:06 am

Hi Andre,

Thanks for your kind help. Few clarifications please....

<i>>> 1. Please use latest version of a branch when you update, minor versions are bug fix versions.</i>

So do you mean the process should be:

3.6.1 to 3.8.10
3.8.10 to 3.9.5
3.9.5 to 3.10.1
3.10.1 to 4.0.0 (as 4.0.1 is not released yet).

Actually I just followed the chart on the following url.

http://ez.no/doc/ez_publish/upgrading/releases

<i>>> 2. site style is a package as well, did you remember to copy over the packages in the var folder? (var/storage/packages)</i>

I checked the ez3.6.1 install, the packages are in var/news/storage/packages not in the var/storage/packages, but in the new installs 3.6.1 upwards the packages are in var/storage/packages. During upgrading I just copied the whole var folder. Do you want me to copy or move the packages into var/storage/packages? Please clarify this point.

What about upgrading 3.10.0 to 4.0.0, is it safe to do as in the documentation it is not recommeded. Any approx date for releasing stable 4.0.1???

I can't wait as the servers are getting upgraded. Last in the documentation regarding upgrade from 3.10.0 to 4.0.0, there is again an addition of scripts like updateniceurls.php and updatetipafriendpolicy.php, do i need to run them again as the part of upgrade in 3.10.0 to 4.0.0.

Cheers

Smith

André R.

Monday 11 August 2008 1:44:39 am

#1
If it worked for you, don't change anything, I just mentioned it because they are sometimes more stable.

#2
Do try that. (copy)

4.0.1:
No date, but if you read the article on 4.0.1rc, you'll see that the issue that holds back 4.0.1 and 3.10.1 from being called stable where issues updating from 4.0.0 to 4.0.1 and 3.10.0 to 3.10.1.
So when you upgrade from 3.9 or earlier .1rc2 should be ok, and more stable then .0 in most cases.

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

John Smith

Monday 11 August 2008 2:03:52 am

<i>>> If it worked for you, don't change anything, I just mentioned it because they are sometimes more stable. </i>

Ok Cheers, it worked upto 3.10.0, only with the problem regarding the packages and sitestyle thumbnails mentioned above.

<i>>>>Do try that.</i>

Move or copy?

Sorry missed, you already written copy. cheers.

John Smith

Monday 11 August 2008 2:57:05 am

Hi Andre,

Tried what you said and it worked, i think it should be documentated somewhere...

Firstly I tried in /var/storage/packages but it did not work, then i tried, /var/storage/packages/ez-systems and it did the trick.

Even the sitestyle thumbnail is coming.

One more thing in the design -> look and feel

When you go into the editing mode of the look and feel class from the adminstration site I dont know why two locations are coming.

One is for "Design" which is fine and other one is for "Setup" which is not right. Do you know anything about it.

I ran the 3.10.0 script by removing the "updateniceurls.php and updatetipafriendpolicy.php" from the script, but there are massive warning and errors in the debug saying run updateniceurls.php and all the urls converted to numbers. In the documentation you guys wrote to ignore and do it while upgrading from 3.10.0 to 4.0.0

I think it is best to run the script and then revert back while upgrading 3.10.0 to 4.0.0. Does not seem any point. Bit confused. What you think?

André R.

Monday 11 August 2008 3:49:50 am

> In the documentation you guys wrote to ignore and do it while upgrading from 3.10.0 to 4.0.0

If you are upgrading to eZ Publish 4.0, then you should skip that step when you upgrade from 3.9 to 3.10.

I do not know why your look and feel have two locations, couldn't you just remove the second one(in Setup)?

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

John Smith

Monday 11 August 2008 4:06:51 am

<i>>If you are upgrading to eZ Publish 4.0, then you should skip that step when you upgrade from 3.9 to 3.10.</i>

Ignoring massive warning and the urls being converted into numbers breaking all the links??

<i>>>I do not know why your look and feel have two locations, couldn't you just remove the second one(in Setup)?</i>

I tried removing the second one after switching the location on, because you can't remove the location while editing the object anymore.

But selecting the location and pressing the Remove Selected is not doing anything.

André R.

Monday 11 August 2008 6:52:02 am

> Ignoring massive warning and the urls being converted into numbers breaking all the links??

Yes the 2 minutes you have 3.10 running and are about to upgrade to 4.0.
In your case (running 3.10 until you feel comfortable upgrading to 4.0 ), you should never have skipped that step.

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

John Smith

Monday 11 August 2008 7:19:46 am

Fair enough got the answer, i will run the nice url and tipafriendpolicy later in 3.10.0 to 4.0.0

Now the last thing, where definately need your advice.

Upto now i am using the following settings:

<?php /* #?ini charset="iso-8859-1"?

[CharacterSettings]
Charset=iso-8859-1
*/ ?>

The character set in the database is English iso-8859-1.

What is the best way to convert the database to utf-8. Is there any script which can do this? In the documentation you guys saying it will be the part of 4.0.1...

Please help...

Thanks very much for helping me upto now.

John Smith

Wednesday 13 August 2008 6:06:28 am

Anyone please???

Łukasz Serwatka

Wednesday 13 August 2008 6:43:32 am

Hi, you can actually use script provided with 4.0.1rc2 which is stored in bin\php\ezconvertdbcharset.php which do conversion. Run it with --help param to get more info.

Using that script should be easy to make conversion.

More useful links:
http://ez.no/developer/forum/install_configuration/database_charset_conversion_downgrade_sql_to_non_utf_8
http://ez.no/developer/forum/general/convert_from_iso_8859_1_encoding_to_utf_8

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

John Smith

Tuesday 19 August 2008 2:50:57 am

hi Łukasz,

</i>>> Hi, you can actually use script provided with 4.0.1rc2 which is stored in bin\php\ezconvertdbcharset.php which do conversion. Run it with --help param to get more info.

Using that script should be easy to make conversion. </i>

I copied the script from 4.0.1rc2 into my ez4.0 installation...

Running the script gives me the following errors:

Fatal error: Call to undefined method eZContentClassAttributeNameList::cleanNameList() in /usr/local/home/httpd/vhtdocs/<dir name>/bin/php/ezconvertdbcharset.php on line 391

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

Is there anything which i am missing???

The script I ran:

<path to php5> bin/php/ezconvertdbcharset.php

Please help.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.