Forums / General / Suddenly my images do not scale

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

eZ debug

Timing: Jan 31 2025 04:24:37
Script start
Timing: Jan 31 2025 04:24:37
Module start 'content'
Timing: Jan 31 2025 04:24:37
Module end 'content'
Timing: Jan 31 2025 04:24:37
Script end

Main resources:

Total runtime0.1263 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 587.9219180.8438
Module start 'content' 0.00450.0040 768.7656105.9609
Module end 'content' 0.00850.1177 874.7266534.5234
Script end 0.1262  1,409.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00302.3813200.0002
Check MTime0.00120.9242200.0001
Mysql Total
Database connection0.00070.524210.0007
Mysqli_queries0.090871.94821410.0006
Looping result0.00090.68321390.0000
Template Total0.117493.010.1174
Template load0.00080.631310.0008
Template processing0.116692.349510.1166
Override
Cache load0.00050.381110.0005
Sytem overhead
Fetch class attribute can translate value0.00090.680410.0009
XML
Image XML parsing0.00020.171810.0002
General
dbfile0.00413.2298200.0002
String conversion0.00000.002530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs