Forums / Install & configuration / Upgrade to 3.7 Issues

Upgrade to 3.7 Issues

Author Message

GDA AS

Wednesday 21 December 2005 12:10:38 am

A tale of five sites (to be completed)

One of our webhosts, www.webhuset.no have decided to upgrade to PHP 4.4.1 and have done so without giving us any time to prepare, so as of today we have a number of websites that needs to be upgraded to version 3.7.2 in order to function. Oh well.. no time for shopping christmas gifts this year either..

I decided to do make some notes on this upgrade venture as I think I am bound to run into some problems.. so here we go :)

Site A,B,C: eZpublish version 3.6.1
Site D: eZpublish version 3.6.4
Site E: eZpublish version 3.5.1

<b>The plan:</b>
1. Back up the existing database and eZ installation
2. Make a fresh install of eZ 3.7.2 in a separate folder in the websites
3. Do the necessary wizardry on each mysql database as described with every release.
4. Copy the design files (/design), the complete /var directory, /settings/override (complete directory), /settings/siteaccess (only the directories not present in the new install area), If Online Editor is installed or any other extensions they also needs to be copied
5. if necessary run bin/modfix.sh to set the correct permissions on the copied files.
6. Clear the cache files

So far we have installed site A through D and no database conversion or scrips was run as the 3.7 database is the same as 3.6

<b>HELP:</b>
After copying the files from the old version directories as in step 4 above, the sites all seem to work well, except we dont have the necessary permissions to viw the picture objects. At least thats the error message we get whenever a picture is supposed to be shown.
The modfix.sh script sets 777 permisssions on the var directory, some ppl claim it should be set to 770, but inspecting the old var directory shows that they are indeed set to 777, this seems to be the right choice even if it is claimed to be unsafe. Someone clarify perhaps?

So here we are.. almost successful, could someone perhaps help with the image object permissions?

We will start working on site E, which needs some small work on the database before we can proceed with the upgrade. Will try to document it here.

Site E database needs to be upgraded to 3.6, actually the changelog for 3.6.0 says it has to be upgraded to 3.5.2 first but there is no change btw 3.5.1 and 3.5.2 so.. Also there is no change between 3.6 and 3.7.2 so this one upgrade is all that is needed.

Wish us good luck :) Merry Christmas to you all

John Arne Jørgensen

Wednesday 21 December 2005 12:33:24 am

Check that Anonymous users have read access to the media folder...

GDA AS

Wednesday 21 December 2005 1:15:19 am

Will check that about the anonymous role. I am wondering though.. could it be that this happens because we didnt convert the databases btw. 3.6.1 and 3.7.2 ?
Indeed there are some changes between the databases, and I'll try that as well.

Frederik Holljen

Wednesday 21 December 2005 1:21:20 am

It is probably because of the permissions update. There was a security issue with earlier versions of 3.6 with related objects (e.g images). Basically eZ publish did not check if you had the rights to see an objected if it was embedded in another one. This was resolved in 3.6.2 if I remember correctly.

GDA AS

Wednesday 21 December 2005 1:33:10 am

Upgrading the databases did nothing. Giving the anonymous user read access to the media files made the error message disappear, but still no images shown in the website..

the site we are working on now: www.naturgassgrenland.no.. a picture is supposed to be shown on the frontpage

GDA AS

Wednesday 21 December 2005 1:41:46 am

Finished the work on site E (ie: upgrading from 3.5.2 to 3.7.2) and the same problem with image permissions arise.

Giving more permissions to the anonymous user doesnt hack it. In fact even when logged in as an admin no images are shown.

Any solutions ppl? Chistmas is coming awfully fast :D

Frederik Holljen

Wednesday 21 December 2005 2:27:12 am

Did you try clearing the cache after setting the right permissions?

GDA AS

Wednesday 21 December 2005 2:41:00 am

Yes, cache was cleared, did it again just to be sure.
It seems we are closer to a solution as the error message has disappared.

GDA AS

Wednesday 21 December 2005 3:14:01 am

To be precise added to anonymous role "content read section(media)