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)

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

eZ debug

Timing: Jan 19 2025 03:35:44
Script start
Timing: Jan 19 2025 03:35:44
Module start 'layout'
Timing: Jan 19 2025 03:35:44
Module start 'content'
Timing: Jan 19 2025 03:35:44
Module end 'content'
Timing: Jan 19 2025 03:35:44
Script end

Main resources:

Total runtime0.8243 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1563152.6250
Module start 'layout' 0.00550.0028 741.781339.4609
Module start 'content' 0.00830.8147 781.2422615.6328
Module end 'content' 0.82300.0012 1,396.875020.1719
Script end 0.8242  1,417.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4101160.0002
Check MTime0.00140.1654160.0001
Mysql Total
Database connection0.00070.079710.0007
Mysqli_queries0.756391.7572770.0098
Looping result0.00070.0909750.0000
Template Total0.790895.920.3954
Template load0.00260.312220.0013
Template processing0.788295.624820.3941
Template load and register function0.00020.025210.0002
states
state_id_array0.00130.154710.0013
state_identifier_array0.00130.158420.0007
Override
Cache load0.00220.2653490.0000
Sytem overhead
Fetch class attribute can translate value0.00060.070630.0002
Fetch class attribute name0.00120.1402110.0001
XML
Image XML parsing0.00130.162430.0004
class_abstraction
Instantiating content class attribute0.00000.0028120.0000
General
dbfile0.00170.2108220.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs