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

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 06:18:39
Script start
Timing: Jan 31 2025 06:18:39
Module start 'layout'
Timing: Jan 31 2025 06:18:39
Module start 'content'
Timing: Jan 31 2025 06:18:39
Module end 'content'
Timing: Jan 31 2025 06:18:39
Script end

Main resources:

Total runtime0.6203 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.6328151.2734
Module start 'layout' 0.00520.0028 739.906336.8203
Module start 'content' 0.00800.6115 776.72661,162.5469
Module end 'content' 0.61950.0008 1,939.273415.7188
Script end 0.6203  1,954.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5088160.0002
Check MTime0.00140.2186160.0001
Mysql Total
Database connection0.00070.120810.0007
Mysqli_queries0.554889.4415790.0070
Looping result0.00070.1209770.0000
Template Total0.593395.720.2967
Template load0.00200.315220.0010
Template processing0.591495.334320.2957
Template load and register function0.00120.201210.0012
states
state_id_array0.00080.128910.0008
state_identifier_array0.00100.169020.0005
Override
Cache load0.00170.2757580.0000
Sytem overhead
Fetch class attribute can translate value0.00050.083970.0001
Fetch class attribute name0.00180.291790.0002
XML
Image XML parsing0.00140.232770.0002
class_abstraction
Instantiating content class attribute0.00000.002790.0000
General
dbfile0.00090.1456210.0000
String conversion0.00000.001140.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 35
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs