Upgrade from 3.9.0 to 3.9.1 > problems with images

Author Message

eric f

Wednesday 09 January 2008 5:47:54 am

Hi

I've just upgrade my ez publish to 3.9.1 from 3.9.0

Erverything seems ok for the upgrade but after clearing the caches, when i look at my website, images are not displayed.

When i go to the administration, the images are still here and when i publish the page, the images are diplayed in teh web sites.

Is it normal ? why my images are not displayed ?

Thanks in advance for your help.

Heath

Wednesday 09 January 2008 6:32:52 am

I've heard this before I'm fairly certain your problem is with the permissions set on your files and directories.

Reset all file permissions, specifically for the var/ directory as it seems that it is unable to write image variations to disk.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

eric f

Wednesday 09 January 2008 7:48:32 am

Thank for the response.

I have already check the permissions on the folders and set it to 777.

The strange think is that when i did the first clearing of caches, I lost my images, when I publish the page, the images are displayed. If I clear the caches one more time, the images are still displayed.

Regarding this, i dont' think there is a huge problem of configuration.

The problem is that I don't want to re publish all my pages.

André R.

Wednesday 09 January 2008 10:39:58 am

Have you tried clearing all cache (including image aliases that you have to select independently cause it's not included in the 'clear all' cache button) ?
And why did you update to 3.9.1? You can update directly to 3.9.4.

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

eric f

Thursday 10 January 2008 12:57:34 am

Yes i think I cleared all caches because i use the bin command with clear --all.

I upgrade to 3.9.1 because i juste want to fixed a bug for the the 3.9.0 and the 3.9.1 was fine but i don't think this is really the matter except if this problem is a knowne bug of the 3.9.1.

I'm not sure that I will not have the problem if I upgrade to 3.9.4. The strange thing is that i have the problem only for the first clearing of cache, after republishing, it's ok images are displayed again.

I am becoming mad with this problem.

André R.

Thursday 10 January 2008 1:47:07 am

No, if you read the shell script you'll see that it only clears cache in 'IMAGE_CACHEDIR="$DIR/cache/texttoimage"', in other words text to image cache.

Only bin/php/ezcache.php and the cache tab in the admin interface lets you delete image alias cache.
Note: in 3.10+ the shell script is removed so you have to use the php script, and it also has a new option 'purge'. Read more about it in the doc, it's mentioned here: http://ez.no/doc/ez_publish/technical_manual/4_0/features/clustering

Edit: Basically you should never assume eZ Publish functionality does what you want it to do whiteout carefully double checking the doc and/or code. I know it sucks, but it will save you from a lot of grief..

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

Xavier Dutoit

Thursday 10 January 2008 3:35:55 am

Hi,

To avoid this "it sucks" feeling, I'd suggest ez to stick to linguistic conventions, and use "all" when it applies to "all".

If it isn't the case, fix it, or at least display some kind of warning that all doesn't apply to all and that you should do something else...

X+

http://www.sydesy.com

André R.

Thursday 10 January 2008 4:06:37 am

True, but the shell script is removed from 3.10 / 4.0 because it doesn't support cluster setup.
So this only applies to the admin interface.

You should also get a warning if you clear image alias cache and not view cache + template block cache, cause you could end up with pages that link to non existing image aliases.

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

eric f

Thursday 10 January 2008 6:02:11 am

Hi

I cleared all the caches with the bin/php/ezcache.php.

But it doesn't change anythnig, I still have the problem.

For information, i'll notice that I have check for imagemagick on my server and it's intalled.

I'll will apréciate any other sugestions.

Thank in advance

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 18 2025 18:24:56
Script start
Timing: Jan 18 2025 18:24:56
Module start 'layout'
Timing: Jan 18 2025 18:24:56
Module start 'content'
Timing: Jan 18 2025 18:24:56
Module end 'content'
Timing: Jan 18 2025 18:24:56
Script end

Main resources:

Total runtime0.6631 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.1641152.6563
Module start 'layout' 0.00690.0029 740.820339.5078
Module start 'content' 0.00980.6522 780.3281691.7734
Module end 'content' 0.66190.0011 1,472.101620.1094
Script end 0.6630  1,492.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4661160.0002
Check MTime0.00130.1926160.0001
Mysql Total
Database connection0.00140.212410.0014
Mysqli_queries0.579287.3426790.0073
Looping result0.00080.1254770.0000
Template Total0.631395.220.3157
Template load0.00190.282920.0009
Template processing0.629494.923520.3147
Template load and register function0.00020.026510.0002
states
state_id_array0.00130.198910.0013
state_identifier_array0.00080.114020.0004
Override
Cache load0.00180.2645540.0000
Sytem overhead
Fetch class attribute can translate value0.00090.129240.0002
Fetch class attribute name0.00350.5262120.0003
XML
Image XML parsing0.00190.288040.0005
class_abstraction
Instantiating content class attribute0.00000.0052140.0000
General
dbfile0.00100.1556300.0000
String conversion0.00000.001040.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
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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