Forums / Install & configuration / No images!! Tried everything

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...