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

eZ debug

Timing: Jan 18 2025 11:45:04
Script start
Timing: Jan 18 2025 11:45:04
Module start 'content'
Timing: Jan 18 2025 11:45:05
Module end 'content'
Timing: Jan 18 2025 11:45:05
Script end

Main resources:

Total runtime0.9059 sec
Peak memory usage4,096.0000 KB
Database Queries218

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.8281180.8281
Module start 'content' 0.00670.7669 768.6563734.7188
Module end 'content' 0.77360.1322 1,503.3750344.4609
Script end 0.9058  1,847.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4318210.0002
Check MTime0.00160.1737210.0001
Mysql Total
Database connection0.00130.148510.0013
Mysqli_queries0.805988.96562180.0037
Looping result0.00300.32652160.0000
Template Total0.867395.720.4336
Template load0.00260.291120.0013
Template processing0.864695.447520.4323
Template load and register function0.00020.021710.0002
states
state_id_array0.00120.137710.0012
state_identifier_array0.00080.089320.0004
Override
Cache load0.00250.2718950.0000
Sytem overhead
Fetch class attribute can translate value0.00190.214460.0003
Fetch class attribute name0.00210.2343110.0002
XML
Image XML parsing0.00180.193560.0003
class_abstraction
Instantiating content class attribute0.00000.0033120.0000
General
dbfile0.00230.2520340.0001
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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