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.