Forums / Install & configuration / sudden image storage folder "original" and "reference" mixup

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

eZ debug

Timing: Jan 18 2025 11:23:06
Script start
Timing: Jan 18 2025 11:23:06
Module start 'content'
Timing: Jan 18 2025 11:23:07
Module end 'content'
Timing: Jan 18 2025 11:23:07
Script end

Main resources:

Total runtime1.0438 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.9922180.7891
Module start 'content' 0.00820.8385 768.7813553.2266
Module end 'content' 0.84670.1970 1,322.0078336.7344
Script end 1.0437  1,658.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.4389210.0002
Check MTime0.00160.1571210.0001
Mysql Total
Database connection0.00140.131810.0014
Mysqli_queries0.956491.63461970.0049
Looping result0.00230.21771950.0000
Template Total1.007996.620.5039
Template load0.00210.198120.0010
Template processing1.005896.363320.5029
Template load and register function0.00020.023610.0002
states
state_id_array0.00070.070310.0007
state_identifier_array0.00140.132920.0007
Override
Cache load0.00180.1689310.0001
Sytem overhead
Fetch class attribute can translate value0.00110.104630.0004
Fetch class attribute name0.00130.126450.0003
XML
Image XML parsing0.00080.079730.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00370.3577270.0001
String conversion0.00000.000830.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs