Forums / Install & configuration / Images not showing except in admin

Images not showing except in admin

Author Message

alain boudard

Tuesday 22 February 2005 6:04:07 am

Here is the problem, as said in title :
I can upload picture right in the admin interface, the thumbnails show right, I add the <object> tag with the correct id...
I check the erticle in this admin interface, the picture shows perfectly

>> I go to check the same page in my website, and ... nothing

- Source code doesn't show no part of an object tag... nothing
- Debug mode says :

Error: eZTemplate @ design/standard/templates/content/datatype/view/ezxmltags/object.tpl:3[4]  	Feb 22 2005 15:01:45

No such attribute for array(1): align
Choose one of following: id

Error: eZTemplate @ design/base/override/templates/embed/image.tpl:12[11] 	Feb 22 2005 15:01:45

No such attribute for array(1): size
Choose one of following: id

Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:27[4] 	Feb 22 2005 15:01:45

Attribute value was null, cannot get attribute

Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:48[94] 	Feb 22 2005 15:01:45

Cannot retrieve attribute of a NULL

luis muñoz

Tuesday 01 March 2005 5:24:47 am

same problem, but only with a few images in different places. Checked image magic, gd, php.ini and changed var permits to 777 owner apache user. Is very weird. any idea

thanks

Łukasz Serwatka

Tuesday 01 March 2005 6:02:33 am

Hi alain,

Could you test this code and tell about the results? What version of eZ publish do you use?

<object id="xx" size="large" align="center" />

Thank you

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

alain boudard

Tuesday 01 March 2005 6:32:19 am

Hi,

I use 3.5 EZ

Actually, I managed to show pictures, but I changed some code in the original template ...
it's certainly not the right way, but I couldn't find any better !

>> I removed every call to such code :
$object_parameters.size

removed from design/base/override/templates/embed/image.tpl:

image_class=$object_parameters.size

and 

style="width: {$object.data_map.image.content[$object_parameters.size].width}px"

it seemed that size attribute was a problem, then I just erased references to it !
If any other solution can be found, I take it, as long as I don't even understand why it didn't work !

Alain

Samuel Sauder

Tuesday 01 March 2005 12:04:38 pm

I had the same trouble. Once I looked at your solution I tried size="large" parameter in the object tag. Then my test worked! It must not pick a default size?

eZ debug

Timing: Jan 18 2025 22:22:27
Script start
Timing: Jan 18 2025 22:22:27
Module start 'content'
Timing: Jan 18 2025 22:22:29
Module end 'content'
Timing: Jan 18 2025 22:22:29
Script end

Main resources:

Total runtime1.7836 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.8359180.8203
Module start 'content' 0.00711.6339 768.6563637.7656
Module end 'content' 1.64110.1424 1,406.4219337.0625
Script end 1.7835  1,743.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.2484210.0002
Check MTime0.00170.0953210.0001
Mysql Total
Database connection0.00100.056710.0010
Mysqli_queries1.696695.12122040.0083
Looping result0.00270.15092020.0000
Template Total1.753898.320.8769
Template load0.00270.153120.0014
Template processing1.751198.178720.8755
Template load and register function0.00020.010310.0002
states
state_id_array0.00070.037110.0007
state_identifier_array0.00060.034220.0003
Override
Cache load0.00230.1277320.0001
Sytem overhead
Fetch class attribute can translate value0.00110.060750.0002
Fetch class attribute name0.00150.086260.0003
XML
Image XML parsing0.00130.074750.0003
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00360.2002290.0001
String conversion0.00000.000430.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 7

Time used to render debug report: 0.0005 secs