Forums / Setup & design / Uploaded Image visible in Admin but not in User version

Uploaded Image visible in Admin but not in User version

Author Message

Ben Muller

Monday 08 December 2003 8:59:59 am

Hi,
I've got a variation on the problem of displaying images. I'm using the Article class without modification, and images I upload into an article appear in the Admin preview, but do not appear in end user site. I've taken the following steps:

1. verified that my image.ini settings are in order
[ConverterSettings]
UseConvert=true
UseGD=true

[Rules]
...etc

2. verified apache has sufficient permissions to add files to the var directory

3. walked through the image problem documentation looking for solutions to problems with similar symptoms

In the Admin page the source looks like:
<img src="/siteroot/var/sitename/storage/variations/image/p/h/p/phpsgDCJE_150x150_108.jpg" width="150" height="98" border="0" alt="" />

but the source in the end user site looks like:
<img src="/siteroot" width="" height="" border="0" alt="" />

I'm guessing this last clue should give the problem away. I've scoured the forums looking for a similar post, but haven't seen one. Thanks in advance! Ben

Ben Muller

Monday 08 December 2003 9:13:20 am

I also meant to mention that I've verified the code on my page. I've created an override template which includes this code:

{attribute_view_gui attribute=$node.object.data_map.title}
{attribute_view_gui attribute=$node.object.data_map.intro}
{attribute_view_gui attribute=$node.object.data_map.thumbnail}
{attribute_view_gui attribute=$node.object.data_map.body}

The override seems to be working, it's just not displaying the image.

Alex Jones

Monday 08 December 2003 9:23:17 am

Ben, could you also include the code you use in the thumbnail template ({attribute_view_gui attribute=$node.object.data_map.thumbnail})? This might help us track down the problem.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Ben Muller

Monday 08 December 2003 10:21:49 am

this code:
{attribute_view_gui attribute=$node.object.data_map.title}
{attribute_view_gui attribute=$node.object.data_map.intro}
{attribute_view_gui attribute=$node.object.data_map.thumbnail}
{attribute_view_gui attribute=$node.object.data_map.body}

is just about the entire template. There is other code in pagelayout.tpl that wraps around this content.

I'm just getting into coding with ez, but I understood this operator to display the content class object's attribute. Please correct me if my understanding is incorrect. This is based on the code in the demo site.

Ben Muller

Thursday 11 December 2003 9:20:49 am

I believe the problem was that I had problems with caching, so I applied someone's recommendation to change the

[FileSettings]
VarDir=var/"my design"

to

[FileSettings]
VarDir=var/

this messed up the photo storage. I changed it back to
[FileSettings]
VarDir=var/skanner

and my images appear now.

Thanks!

eZ debug

Timing: Jan 19 2025 04:18:14
Script start
Timing: Jan 19 2025 04:18:14
Module start 'content'
Timing: Jan 19 2025 04:18:15
Module end 'content'
Timing: Jan 19 2025 04:18:15
Script end

Main resources:

Total runtime0.7288 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.1953180.8125
Module start 'content' 0.00720.5603 770.0078569.7813
Module end 'content' 0.56750.1613 1,339.7891337.3516
Script end 0.7288  1,677.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5559210.0002
Check MTime0.00150.2003210.0001
Mysql Total
Database connection0.00130.174310.0013
Mysqli_queries0.654489.78522000.0033
Looping result0.00160.22631980.0000
Template Total0.701096.220.3505
Template load0.00160.224920.0008
Template processing0.699495.957020.3497
Template load and register function0.00010.015110.0001
states
state_id_array0.00090.117310.0009
state_identifier_array0.00100.137520.0005
Override
Cache load0.00150.1990490.0000
Sytem overhead
Fetch class attribute can translate value0.00130.179430.0004
Fetch class attribute name0.00070.102460.0001
XML
Image XML parsing0.00070.101930.0002
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00510.7046270.0002
String conversion0.00000.001030.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
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 31
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs