Suddenly my images do not scale

Author Message

Nick Haralambopoulos

Friday 20 April 2007 9:20:24 am

I searched the forums but didn't find anything like it.

This problem started yesterday night and it developed today. I am using ezp 3.7.6, php 4.4 and Apache. My site is nothing fancy, I am using the default templates and my site worked fine the last 8 months or so.
Last night when I tried to enter a new product throught the admin interface but the image of the product wasn't visible althouth its name was! Also when I looked at my site it had no images at all. I cleared the caches and now the images appear but do not scale. They appear at the size they were when I uploaded them.
I didn't change any settings.

Can anyone help? My site is currently down because images make it look ridicilus.

Damien Pobel

Friday 20 April 2007 9:57:50 am

Perhaps the admin of your web server made a change in the configuration of PHP4.
You should check these items :
- GD or ImageMagick are setup correctly for your site.
- permissions are correct on the directory where eZ Publish write the thumbnail files.

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Piotrek Karaś

Friday 20 April 2007 10:22:35 am

Just in addition to Damien's suggestions: any permission problems are usually well seen with the help of debug output, therefore easy to diagnose.

This is what often happens when we move a site from a shared hosting with root privileges (permissions don't matter) to a local development LAMP machine. Solution is to make sure eZ can read/write all the desired locations.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Nick Haralambopoulos

Friday 20 April 2007 10:34:30 am

Thank you both for your help. No changes have been made to the server as far as I know since I am the (poor) webmaster. I will try your suggestions and keep you updated.

Nabil Alimi

Friday 20 April 2007 1:07:10 pm

Hi Nick,

I encountered this issue a few days ago while updating my website but it was a setting mismatch in my image.ini.append.php file : on my local machine, i'm using GD where on my webserver I'm using ImageMagick. So it could not work when I overwrote server settings with local ones.

A few more advices :
- Check your error log : when eZpublish can't resize images as it should, it adds a line in var/log/error.log like :

eZImageManager::createImageAlias:

with details about what went wrong.
- Could it be disk space related ?

Best regards.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Piotrek Karaś

Friday 20 April 2007 1:17:58 pm

<i>Could it be disk space related ?</i>
Actually, that's a good general point :)
eZ publish is quite demanding when it comes to disk space. And then unless one has a way and/or a habit of monitoring the available space, he will deal with the problem sooner or later. And it's usually very confusing since it is usually the last place you look :)

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Nick Haralambopoulos

Sunday 22 April 2007 9:49:30 am

My little site runs on MacOS. The day before the problem started I run disk utiity a program that checks the disk directories and file permissions. The only thing that found was:
"Permissions differ on ./private/var/log/secure.log, should be -rw------- , they are -rw-r----- " and it corrected them. No permissions were modified in my ezp intallations. just to be sure I set the permissions again to the proper one for my site. Still no go.
I am using imageMagick so I followed Damien's suggestion about it. My other ezp site on the same server works fine!
Disk space is not an issue. There are always more than 60GB free for both sites.
I turned on debug output as Piotrek suggested. And I get the following message for every picture

Timing: Apr 22 2007 19:23:38

Module start 'content'

Warning: eZImageManager::convert Apr 22 2007 19:23:38

The filter 'geometry/scaledownonly' is not supported by any of the image handlers, will ignore this filter

Warning: eZImageManager::convert Apr 22 2007 19:23:38

The filter 'geometry/scale' is not supported by any of the image handlers, will ignore this filter

So surely something is wrong.
Any suggestions? Here should I look for correcting this?

Nick Haralambopoulos

Tuesday 24 April 2007 1:38:04 am

For the solution (!) look at my other post with title "Is EZP unreliable?"

http://ez.no/community/forum/general/is_ezp_unreliable

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 01:21:34
Script start
Timing: Jan 19 2025 01:21:34
Module start 'layout'
Timing: Jan 19 2025 01:21:34
Module start 'content'
Timing: Jan 19 2025 01:21:35
Module end 'content'
Timing: Jan 19 2025 01:21:35
Script end

Main resources:

Total runtime0.7885 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1484152.6250
Module start 'layout' 0.00590.0032 741.773439.4453
Module start 'content' 0.00910.7780 781.2188688.9766
Module end 'content' 0.78710.0014 1,470.195320.1641
Script end 0.7885  1,490.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4084160.0002
Check MTime0.00130.1698160.0001
Mysql Total
Database connection0.00070.087510.0007
Mysqli_queries0.720791.4026760.0095
Looping result0.00070.0922740.0000
Template Total0.745094.520.3725
Template load0.00210.260520.0010
Template processing0.743094.218520.3715
Template load and register function0.00030.043010.0003
states
state_id_array0.00170.219810.0017
state_identifier_array0.00110.133920.0005
Override
Cache load0.00180.2298520.0000
Sytem overhead
Fetch class attribute can translate value0.00050.067740.0001
Fetch class attribute name0.00140.1721110.0001
XML
Image XML parsing0.00150.191140.0004
class_abstraction
Instantiating content class attribute0.00000.0026120.0000
General
dbfile0.00120.1484290.0000
String conversion0.00000.001340.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
8content/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
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs