Image in object not appearing when using attribute_view_gui

Author Message

Luis Cruz

Monday 15 November 2004 8:56:46 am

Bit of a bizarre problem happening here. I have an object called
"Partner" that contains an image as one of the attributes. These objects
are stored in various folders based on country (e.g., USA, Canada, etc.).
I display the folders using an override template that pulls the children
and displays them in a list. For nearly all of the objects, the image attribute
displays perfectly fine when I use this line in the template:

{attribute_view_gui attribute=$:item.object.data_map.logo}

Now here is the bizarre part; I created a few new folders and moved some of the
existing objects into these new folders. Suddenly, the image attribute
will no longer display on these moved objects. Also, I can create a new object
in any of the folders, either the new ones I created or the existing ones,
and the image will not display.

I have tried flushing all the caches, but the fact that new objects seem
to be affected as well concerns me that there might be a larger problem
going on. The image directories appear to be created fine, and doing

{$:item.object.data_map.logo|attribute(show)}

produces the output I would expect to see.

Any ideas what might be wrong? At the end of my tether on this one.

Marco Zinn

Monday 15 November 2004 1:33:47 pm

I guess, you tried with an image, that worked before?
I had problems with some ezPublish setups, where Jpegs worked, while GIFs did not work, which usually is a problem with the image subsystem (config). So, first thing to check is to use an image file, that works in some other object and/or a jpeg.
For debuggin the image system, you can enable the debug output print (in the admin interface) and see, what happens.

Oh, and check your free webspace (disc quota). Maybe your harddisc (partition) is just full.

Marco
http://www.hyperroad-design.com

Luis Cruz

Monday 15 November 2004 1:57:44 pm

Yes, I have tried with images that worked before; also, it does not seem
to matter what type of image file you use. gif, jpeg, png... they do
not seem to show up at all. Disk space is not an issue; the disk ezpublish lives on is only 7% full.

The odd thing is that I have other, similar objects that are working fine under
similar template conditions. They have an image attribute that appears just
fine. However, any new or moved content in a particular section seems to
not have the images displayed. All of the old content in that section still
displays their images even after a flush of the cache.

Very odd; will have to flip on debug over the weekend or late at night
to see if anything shakes loose from that. But, again, I am completely
stumped by why this is just starting to happen only in one section.

Luis Cruz

Monday 15 November 2004 2:20:40 pm

*annoyed grunt* Turned debug on and found the "Failed executing: /usr/bin/convert"
error message in the output. Checked the server and found ImageMagick was
not present. Quick up2date later, and the images are back.

Nothing to see here now... just ignore the embarrased admin in the corner...

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 15:21:11
Script start
Timing: Jan 19 2025 15:21:11
Module start 'layout'
Timing: Jan 19 2025 15:21:11
Module start 'content'
Timing: Jan 19 2025 15:21:12
Module end 'content'
Timing: Jan 19 2025 15:21:12
Script end

Main resources:

Total runtime1.1352 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.4141152.6563
Module start 'layout' 0.00620.0038 742.070339.5078
Module start 'content' 0.01001.1238 781.5781557.2656
Module end 'content' 1.13380.0014 1,338.843812.0938
Script end 1.1351  1,350.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3210160.0002
Check MTime0.00140.1226160.0001
Mysql Total
Database connection0.00090.075710.0009
Mysqli_queries1.085695.6341600.0181
Looping result0.00050.0443580.0000
Template Total1.103497.220.5517
Template load0.00240.214920.0012
Template processing1.100996.980320.5505
Template load and register function0.00020.020510.0002
states
state_id_array0.00100.084110.0010
state_identifier_array0.00120.108820.0006
Override
Cache load0.00210.1886440.0000
Sytem overhead
Fetch class attribute can translate value0.00070.059020.0003
Fetch class attribute name0.00080.069050.0002
XML
Image XML parsing0.00060.049620.0003
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00090.0797160.0001
String conversion0.00000.001040.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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