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.

eZ debug

Timing: Jan 31 2025 01:16:14
Script start
Timing: Jan 31 2025 01:16:14
Module start 'layout'
Timing: Jan 31 2025 01:16:14
Module start 'content'
Timing: Jan 31 2025 01:16:15
Module end 'content'
Timing: Jan 31 2025 01:16:15
Script end

Main resources:

Total runtime0.6811 sec
Peak memory usage8,192.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.4297151.2422
Module start 'layout' 0.00610.0040 739.6719220.7344
Module start 'content' 0.01000.6702 960.40634,455.5781
Module end 'content' 0.68020.0009 5,415.984411.7813
Script end 0.6811  5,427.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5373160.0002
Check MTime0.00140.2062160.0001
Mysql Total
Database connection0.00080.124310.0008
Mysqli_queries0.587586.2564600.0098
Looping result0.00060.0847580.0000
Template Total0.628092.220.3140
Template load0.00210.304620.0010
Template processing0.625991.889020.3129
Template load and register function0.00160.238910.0016
states
state_id_array0.00140.208910.0014
state_identifier_array0.00100.147020.0005
Override
Cache load0.00170.2498310.0001
Sytem overhead
Fetch class attribute can translate value0.00200.298520.0010
Fetch class attribute name0.00230.335350.0005
XML
Image XML parsing0.00410.596220.0020
class_abstraction
Instantiating content class attribute0.00000.001950.0000
General
dbfile0.00590.8596160.0004
String conversion0.00000.001240.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs