sudden image storage folder "original" and "reference" mixup

Author Message

cfa cfa

Saturday 27 September 2003 10:20:00 pm

hello,

i was running a site on ez3.1-1 and out of a sudden the imagemagick convert calls became strange (my sysadmin didn t change anything):

Exec: convert -geometry "600x600>" var/storage/reference/image//phpS4zLPk.jpg jpg:var/storage/variations/image/p/h/p//phpS4zLPk_600x600_1358.jpg, Err: , Ret: 127

you see the double slashes in there // and apart from that i think this convert call should use the "original" folder and not the "reference" folder.

image uploads work without error message. but when clicking on the image the first time the command above is executed... of course no image is coming up.

imagemagick works great on ssh command line. the path to imagemagick is also correct. image folder permissions are rwx for everyone.

[ImageSettings]
OriginalDir=original
ReferenceDir=reference
VariationsDir=variations

anyone can help?

Marco Zinn

Sunday 28 September 2003 9:17:51 am

The convert call, that you quote in your post is for doing the image variation.
That means: It is correct (using the reference dir for input and the varations dir for output), expect the //, which we have, to. But I think, the // does no harm here.
As you get an error, the image variation is not created. Probably, you do not have the reference image.
Watch your debug output, when you upload an image. There, the reference image is created. Check, if you get an error there.
Your Dir settings are fine.
Did you recently disable "ScaleLargerThanOriginal"? If so, or you change some "safe_mode" settings of PHP, read this documentation page:
http://ez.no/content/view/full/25004

Marco
http://www.hyperroad-design.com

cfa cfa

Sunday 28 September 2003 3:07:49 pm

marco,

thanks for all the info. i checked every point you provided in the link. there s nothing wrong with upload or safe_mode settings. you changes there. i even pulled down the whole site and run it on my local windows box. everything was just fine...

there are no error messages during upload. i checked the "original" folder, the images are there. re-run modfix.sh to make sure settings are correct.

never touched the scale setting you mentioned. can't think of anything else to do.

cfa cfa

Sunday 28 September 2003 11:47:08 pm

i upgraded to ez 3.2-1 and the problem is gone more or less. still get a open_basedir error whenever clearing out the ini-cache but things work better now.

open_basedir restriction in effect. File(/codepages/36e48c5d322c489dd3ee4e51ffda1494.php) is not within the allowed path(s): (/home/sk:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/sk/public_html/lib/ezi18n/classes/ezcodepage.php on line 575

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