Forums / Setup & design / Image in object not appearing when using attribute_view_gui

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...

eZ debug

Timing: Jan 19 2025 21:29:41
Script start
Timing: Jan 19 2025 21:29:41
Module start 'content'
Timing: Jan 19 2025 21:29:41
Module end 'content'
Timing: Jan 19 2025 21:29:41
Script end

Main resources:

Total runtime0.1748 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.2109180.7969
Module start 'content' 0.00620.0054 770.007898.1016
Module end 'content' 0.01150.1631 868.1094528.4219
Script end 0.1746  1,396.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.9460200.0002
Check MTime0.00140.7838200.0001
Mysql Total
Database connection0.00080.465210.0008
Mysqli_queries0.128273.36381410.0009
Looping result0.00140.82001390.0000
Template Total0.162893.110.1628
Template load0.00080.475010.0008
Template processing0.161992.649410.1619
Override
Cache load0.00060.335310.0006
Sytem overhead
Fetch class attribute can translate value0.00080.465910.0008
XML
Image XML parsing0.00040.232310.0004
General
dbfile0.00291.6700200.0001
String conversion0.00000.003430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs