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?