Forums / Install & configuration / I can't get images to show and I have tried everything!!! I am begging for help

I can't get images to show and I have tried everything!!! I am begging for help

Author Message

Tristan Koen

Saturday 23 August 2003 7:58:03 am

I am running ez3.1-1 (SVN 2703) on Win2k. I have also installed imagemagick and tested that it works.

I just cannot seem to get images to display. I get the following debug errors:

Warning:
Exec: imconvert.exe -geometry "150x150>" var/storage/reference/image//phpF.tmp.jpg jpg:var/storage/variations/image/p/h/p//phpF_150x150_200.tmp.jpg, Err: , Ret: 1

Warning:
getimagesize(var/storage/variations/image/p/h/p/phpF_150x150_200.tmp.jpg): failed to open stream: No such file or directory in c:\www\rcc\htdocs\kernel\classes\datatypes\ezimage\ezimagevariation.php on line 234

Warning:
filesize(): Stat failed for var/storage/variations/image/p/h/p/phpF_150x150_200.tmp.jpg (errno=2 - No such file or directory) in c:\www\rcc\htdocs\kernel\classes\datatypes\ezimage\ezimagevariation.php on line 249

As you can see, I have tried renaming the convert.exe executable. I also changes my image.ini.append.php to read:
[ShellSettings]
ConvertPath=d:\program files\imagemagick-5.5.6-q16
ConvertExecutable=imconvert.exe

When I load an image into an article, the image file get uploaded to my
var/storage/original/image/ directory.
If I look at the debug code, it seems that ez is looking in the
var/storage/reference/image/ directory which remains empty. I suspect this has something to do with the problem, but I don't know how to fix it.

If I copy the .tmp.jpg file from the original directory to the reference directory, it still doesn't work but:
if I then go to a command prompt, cd to my webserver root and then copy & paste the convert - geometry..... line from the debug message, the image is converted and then visible.

Any ideas???

*******************************************
*** UPDATE: It works fine using ez3.2 Beta 1
*** Does this mean this is a bug in ez3.1-1?
*******************************************

Marco Zinn

Saturday 23 August 2003 11:03:51 am

Tristan,

I had a similar problem with ezP2.
The problem was solved, after I removed the > character from the Exec call to "convert". The > is used for redirection and, when safe mode was on, was replaced by some other character, thus the call to convert did not work.
About the "reference" dir: I think, every image is stored in the "original" folder. Then, it is converted to a "reference" size. From this size, the other convertions (variations) are created.
As the first call to "convert" did not work, your reference Dir is empty and so, no variations can be created.

I don't know, what was changed in 3.2Beta1.

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

Víctor Déniz

Monday 25 August 2003 5:30:53 am

Hi Marco,

Could you tell me where did you find the Exec call to convert ? I have the same problem.

andreas spahr

Thursday 28 August 2003 2:54:47 am

I've a similar problem.
The upload works fine, the image is in the directory
var/storage/original/image/
but it is not displayed on the page:
<img src="/var/storage/variations/image/p/h/p" alt="" />

Whats wrong? Can someone help?

Paul Forsyth

Thursday 28 August 2003 5:01:04 am

Look in:

settings/image.ini

There you can change where ez finds the image program needed to create your variations.

paul

John Doyle

Thursday 13 November 2003 5:55:02 pm

According to the a post above the problem was solved in ez3.2 Beta 1 but I using ez3.3 on Win 2K and I still have this problem. Anyone have this problem and been able to solve it?

Kåre Køhler Høvik

Thursday 13 November 2003 6:39:24 pm

Hi

This bug is reported here : http://www.ez.no/developer/ez_publish_3/bug_reports/convert_doesnt_work_when_located_in_a_directory_with_spaces_on_windows

At the current time it looks like a php error. Executing commands in php using "<path and executable with spaces>" works, but the when adding the parameter, ex: "800x600>" it is not executed correctly. The " are needed here because of the > option. It looks like php ignores " characters when the executable is inside ".

The easiest solution for this problem is adding convertim.exe to path, or install/move it to a directory without spaces.

-- Kåre

Kåre Høvik

eZ debug

Timing: Jan 31 2025 06:12:54
Script start
Timing: Jan 31 2025 06:12:54
Module start 'content'
Timing: Jan 31 2025 06:12:54
Module end 'content'
Timing: Jan 31 2025 06:12:55
Script end

Main resources:

Total runtime0.4259 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.0102 588.5391180.7734
Module start 'content' 0.01030.0054 769.3125102.0859
Module end 'content' 0.01570.4101 871.3984533.5313
Script end 0.4258  1,404.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.8701200.0002
Check MTime0.00150.3583200.0001
Mysql Total
Database connection0.00080.185210.0008
Mysqli_queries0.356083.57441410.0025
Looping result0.00180.42791390.0000
Template Total0.409896.210.4098
Template load0.00080.189510.0008
Template processing0.409096.019410.4090
Override
Cache load0.00060.136610.0006
Sytem overhead
Fetch class attribute can translate value0.00110.252910.0011
XML
Image XML parsing0.00050.109210.0005
General
dbfile0.02255.2944200.0011
String conversion0.00000.001230.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