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!

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 04:32:25
Script start
Timing: Jan 19 2025 04:32:25
Module start 'layout'
Timing: Jan 19 2025 04:32:25
Module start 'content'
Timing: Jan 19 2025 04:32:25
Module end 'content'
Timing: Jan 19 2025 04:32:25
Script end

Main resources:

Total runtime0.0159 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 590.5313152.6563
Module start 'layout' 0.00670.0032 743.187539.5078
Module start 'content' 0.00980.0041 782.695393.3672
Module end 'content' 0.01390.0020 876.062534.3047
Script end 0.0159  910.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.8885140.0002
Check MTime0.00117.0787140.0001
Mysql Total
Database connection0.00095.700310.0009
Mysqli_queries0.002616.434230.0009
Looping result0.00000.170410.0000
Template Total0.001710.510.0017
Template load0.00095.473110.0009
Template processing0.00084.958810.0008
Override
Cache load0.00063.806210.0006
General
dbfile0.00031.906180.0000
String conversion0.00000.061340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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