No images!! Tried everything

Author Message

Roland Guijt

Thursday 01 May 2003 7:57:02 am

I'm using Linux (RedHat 8) with PHP 4.2.2., installed the latest eZp, installed demo data. Either in admin or user mode no images are displayed not even a cross, just empty space.

I read the whole forum and did the following:

- Installed ImageMagick, put .so files in /lib, put apps in /bin.
- Changed the config file to include the path to ImageMagick, turned conversion on.
- Checked PHP: GD is compiled in.
- Turned debugging on, no errors.
- Checked the var/storage/orginal directory.. images are present.
- Checked permissions on the ezpublish dir.. all set to apache.

ANY help welcomed.

Thanks,

Roland

Bård Farstad

Friday 02 May 2003 12:08:43 am

First you should check that PHP is not running in safe mode and/or with open_basedir restrictions.

You could also try to upload a new image and see if this works, if not look for debug errors.

Hope this helps,

--bård

Documentation: http://ez.no/doc

Roland Guijt

Friday 02 May 2003 7:05:42 am

Hi,

Thanks very much for your reply.

open_basedir and safe mode are both off in PHP.

When turning debug on, I get the following message:

Exec: convert -geometry "150x150>" var/storage/reference/image//1qjt5N.jpg jpg:var/storage/variations/image/1/q/j//1qjt5N_150x150_336.jpg, Err: , Ret: 1

I've run convert on the command line without problems.
Upon closer examination there is no file 1qjt5N.jpg in var/storage/reference/image.

convert is in /var/www/html/ezpublish/ImageMagick/bin and I have configured that in image.ini .

Can you help me out some more please?

Thanks,

Roland

Bård Farstad

Friday 02 May 2003 7:08:16 am

Try typing the full path to the convert executable in image.ini:

ConvertExecutable=/path/to/convert

It looks like PHP does not find the convert program.

--bård

Documentation: http://ez.no/doc

Roland Guijt

Friday 02 May 2003 8:37:40 am

Thanks again for the fast reply.

I did it, with the same result.
I checked /var/storage/reference/image, but the file it mentions isn't there. Is that not the problem?

Thanks again!

Here's some more of the debug output:

Warning: eZModuleOperationInfo::execute May 02 2003 17:42:46
Missing main operation memento for key: 2f675c15b3ec33d74f73d96201212534
Debug: May 02 2003 17:42:46
cache used #1
Warning: May 02 2003 17:42:46
Exec: /var/www/html/ezpublish/ImageMagick/bin/convert -geometry "600x600>" var/storage/reference/image//phpy363sY.jpg jpg:var/storage/variations/image/p/h/p//phpy363sY_600x600_661.jpg, Err: , Ret: 1
Warning: PHP May 02 2003 17:42:46
getimagesize: Unable to open 'var/storage/variations/image/p/h/p/phpy363sY_600x600_661.jpg' for reading. in /var/www/html/ezpublish/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 211
Warning: PHP May 02 2003 17:42:46
stat failed for var/storage/variations/image/p/h/p/phpy363sY_600x600_661.jpg (errno=2 - No such file or directory) in /var/www/html/ezpublish/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 226
Error: May 02 2003 17:42:46
Could not create variation for var/storage/variations/image/p/h/p/phpy363sY_600x600_661.jpg
Error: eZTemplate @ content/datatype/view/ezimage.tpl:8[14] May 02 2003 17:42:46
Cannot retrieve attribute of a boolean
Error: eZTemplate @ content/datatype/view/ezimage.tpl:8[45] May 02 2003 17:42:46
Cannot retrieve attribute of a boolean
Error: eZTemplate @ content/datatype/view/ezimage.tpl:8[67] May 02 2003 17:42:46
Cannot retrieve attribute of a boolean

Dave Ames

Friday 02 May 2003 6:31:26 pm

I had the same problem and after a day i finally figured it.

I updated ConvertExecutable to include the full path to convert in file settings/image.ini:
ConvertExecutable=/path/to/convert

but i did not realize i had a file:
settings/override/image.ini.append.php
once i changed ConvertExecutable in there as was well it worked ok.

dave

Roland Guijt

Saturday 03 May 2003 1:32:05 am

Thanks for your replies..

I did all you suggested, but still no results. Getting kinda desperate here, since I've been spending two days on this problem.

When I execute convert in the shell with the commandline in the debug output, convert says it can't find the image.
I get no errors during the image upload though..

Hope someone can bring me some salvation.. :-)

Roland

Marco Zinn

Saturday 03 May 2003 2:08:06 am

After reading the whole thread, I don't have any other clues.
If the file is missing in the reference dir, convert cannot do anything.

Question for the ezCrew: What is the function of the reference dir? ( vs. the "original" dir)?

My first clues would have been "safe mode", too. I had some BIG problems with safe mode, as the > was beeing escaped, before convert was executed, thus convert did not work.
But, as your safe mode is off, this should work.
A missing source file IS a problem indeed.
Does a new file, that you upload, exist in "original"?
Does the convert program (called by apache/PHP) has rights to access the /var dirs? I'm not into unix rights, but try allowing everybody to write in /var (for debugging purposes). I think, there is a script for that.
Maybe convert should create a file in the "reference" dir and failed to do _that_.

PS:
I just found an Article of Jan here: http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/changing_default_image_sizes

He explains the reference image thing. And I guess, your problem is, that the reference image was not created for some reason.

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

Jay Towslee

Saturday 26 July 2003 11:12:45 pm

I'd also look at the solution proposed to this problem:

http://ez.no/developer/ez_publish_3/forum/setup_design/no_images_are_shown

which worked for me...

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 18 2025 16:29:25
Script start
Timing: Jan 18 2025 16:29:25
Module start 'layout'
Timing: Jan 18 2025 16:29:25
Module start 'content'
Timing: Jan 18 2025 16:29:27
Module end 'content'
Timing: Jan 18 2025 16:29:27
Script end

Main resources:

Total runtime1.4878 sec
Peak memory usage4,096.0000 KB
Database Queries81

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0313152.6406
Module start 'layout' 0.00680.0032 740.671939.4766
Module start 'content' 0.01001.4764 780.1484729.6250
Module end 'content' 1.48640.0014 1,509.773420.1641
Script end 1.4878  1,529.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2341160.0002
Check MTime0.00130.0904160.0001
Mysql Total
Database connection0.00100.069110.0010
Mysqli_queries1.390393.4493810.0172
Looping result0.00100.0657790.0000
Template Total1.441096.920.7205
Template load0.00230.157320.0012
Template processing1.438696.695120.7193
Template load and register function0.00020.015910.0002
states
state_id_array0.00240.158310.0024
state_identifier_array0.00490.329920.0025
Override
Cache load0.00220.1451950.0000
Sytem overhead
Fetch class attribute can translate value0.00120.078250.0002
Fetch class attribute name0.00280.1876110.0003
XML
Image XML parsing0.00150.103250.0003
class_abstraction
Instantiating content class attribute0.00000.0021120.0000
General
dbfile0.00100.0642230.0000
String conversion0.00000.000740.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 42
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs