Image issue

Author Message

Jonathan Elzingre

Wednesday 24 February 2010 2:17:36 am

Hello

After taking a look at many messages on the forum, I must admit I have failed to find the answer to my problem. I have installed several versions of ezpublish (incl ez flow) and all seem to display the same problem: images will not show. (I'm working on localhost with Easyphp.)

Here is what I checked:
-GD2 and imagemagick: both are installed (fine tune didn't pick up on that anyway). From what I have read on the forum. However, how do I know which one is being used for image handling, and can there be a conflict?
- php.ini: I have put a 16M limit on picture Max thingybob
- I have tried pictures from both the default VAR and the my_site VAR storage and neither work. (I've checked the path for VAR in settings.ini and it points towards my_website one. From the back-office I have attached a picture directly from the my_website storage folder in VAR and it still won't display.

Does anyone have suggestions on what I should try? I don't know if that will help, but only content pictures will not show, those part of templates do.

Finally, note that I am not a developper and that I am discovering the wonderfull world of website publishing.

Thanks a lot for any troubleshooting pointers. I've gone as far as I'm able to on my own for the time being.

Theodoros Papageorgiou

Wednesday 24 February 2010 8:28:49 am

Hi Jonathan,

You can look at the source of your web page and see if the path to the images is correct.

WEBWiZ
Web Development
http://www.webwiz.gr

Jonathan Elzingre

Wednesday 24 February 2010 10:19:23 am

Hello Theodoros,

Thanks for the idea. I double checked it and the path doesn't show. However, I added a caption to the image in the editor and the text displays. Do you know what I need to check to understand why the picture doesn't display?

Thanks again!

Jon

Theodoros Papageorgiou

Wednesday 24 February 2010 11:46:25 am

Hi,

Check the permissions of your var directory. Is it writable by your webserver?
http://ez.no/doc/ez_publish/technical_manual/4_x/installation/manual_installation/manual_configuration_of_ez_publish

WEBWiZ
Web Development
http://www.webwiz.gr

Robin Muilwijk

Wednesday 24 February 2010 11:50:50 am

Hi Jonathan,

Can you login to the back end, look on the right where you find Quick settings, and enable debug? Load some pages with content which include images and see if debug reports anything.

My first guess is that neither GD nor ImageMagick were detected, and this is the cause of your images not showing. You could also check in the back end: Setup > Ini settings, select image.ini. Check if one of the image tools (GD or ImageMagick) is active, and if they are listed in the "ImageConverterSettings" part of that ini file.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Josh Rader

Thursday 25 February 2010 10:37:25 am

I have a similar problem. Using Windows Server 2003, apache, php 5.2.9, imagemagick. Everything worked fine, then I upgraded to PHP 5.3.1 and the images don't load. I looked at the source code of the page after I upgraded to PHP 5.3.1 and the line in the code that is supposed to load the image looks like this:

<div class="obejct-left"><div class="imageleft"><img scr="/" alt="Mr.Smith"/></a><div style="width: px;">

Before I upgraded PHP, the "img scr="/" part had the full path to where the image was located at. Can someone tell me why it's not putting the path in the "img scr=" line listed above? Thanks.

Jonathan Elzingre

Saturday 27 February 2010 12:49:10 am

Hi guys,

Thank you all for your help. I'm a bigginer, and your suggestions made me understand a few things. In the end all 'seemed' to be fine, however I believe that Imagemagick may have been corrupt on install. It was detected and all the right parameters were showing in ini settings. So, I did the only thing left and reinstalled everything from scratch. that worked :), pictures are now showing.

Good luck to you all. Josh, sorry, but can't help you. What version of Apache are you using and are you using ezflow or ezpublish? I saw that Apache should be version 1.3 but not above is that correct?

Jon

Gaetano Giunta

Monday 08 March 2010 8:20:29 am

@Josh look it up here: http://issues.ez.no/IssueView.php?Id=15406

It seems ezp patched for this not working on php 5.2, and now it does not work with php 5.3 (but previous code would probably work...)

Principal Consultant International Business
Member of the Community Project Board

eZ debug

Timing: Jan 17 2025 23:59:44
Script start
Timing: Jan 17 2025 23:59:44
Module start 'content'
Timing: Jan 17 2025 23:59:45
Module end 'content'
Timing: Jan 17 2025 23:59:45
Script end

Main resources:

Total runtime0.8297 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.1328180.8438
Module start 'content' 0.00650.7161 769.9766721.5391
Module end 'content' 0.72260.1071 1,491.5156340.4453
Script end 0.8296  1,831.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5254210.0002
Check MTime0.00170.2031210.0001
Mysql Total
Database connection0.00110.136210.0011
Mysqli_queries0.747090.03322150.0035
Looping result0.00200.24552130.0000
Template Total0.804897.020.4024
Template load0.00230.278320.0012
Template processing0.802496.716720.4012
Template load and register function0.00030.037610.0003
states
state_id_array0.00080.095910.0008
state_identifier_array0.00060.076520.0003
Override
Cache load0.00200.2402450.0000
Sytem overhead
Fetch class attribute can translate value0.00120.147260.0002
Fetch class attribute name0.00120.1412110.0001
XML
Image XML parsing0.00190.234360.0003
class_abstraction
Instantiating content class attribute0.00000.0027120.0000
General
dbfile0.00500.6049400.0001
String conversion0.00000.000830.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs