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?

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 19 2025 00:23:36
Script start
Timing: Jan 19 2025 00:23:36
Module start 'layout'
Timing: Jan 19 2025 00:23:36
Module start 'content'
Timing: Jan 19 2025 00:23:37
Module end 'content'
Timing: Jan 19 2025 00:23:37
Script end

Main resources:

Total runtime0.5858 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0391152.6406
Module start 'layout' 0.00580.0032 740.679739.4766
Module start 'content' 0.00900.5754 780.1563632.6719
Module end 'content' 0.58440.0013 1,412.828112.1406
Script end 0.5857  1,424.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.6493160.0002
Check MTime0.00140.2400160.0001
Mysql Total
Database connection0.00100.165410.0010
Mysqli_queries0.522689.2203670.0078
Looping result0.00080.1342650.0000
Template Total0.546793.320.2734
Template load0.00280.470820.0014
Template processing0.544092.861820.2720
Template load and register function0.00020.034710.0002
states
state_id_array0.00140.232010.0014
state_identifier_array0.00180.306620.0009
Override
Cache load0.00230.3969320.0001
Sytem overhead
Fetch class attribute can translate value0.00090.159240.0002
Fetch class attribute name0.00160.266160.0003
XML
Image XML parsing0.00130.216740.0003
class_abstraction
Instantiating content class attribute0.00000.004160.0000
General
dbfile0.00110.1813180.0001
String conversion0.00000.001240.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs