Forums / General / EZ4 - Cant get images to display on site

EZ4 - Cant get images to display on site

Author Message

Chris Urner

Saturday 15 March 2008 2:32:56 pm

I have tried several ways to get images to display on the site. They show up when editing using the admin interface, but on the site you get the error:

You do not have permission to view this object.

wherever an image is supposed to be.

I have manually gone in and chmod all the images to 777 even, it still says that error on the web page. I then tried to use chmod -R 770 /var to see if that would help (from another forum posting) that did not do it either.

I am sure it is something simple I am doing wrong - this is my first site using EZ, so I am really a newbie.

Thanks

Chris

André R.

Sunday 16 March 2008 7:26:01 am

That warning is a eZ Publish permission warning, meaning you don't have access to see them .
You can verify this by login with admin user on frontend (if you don't have login link, go to '<site_url>/user/login').

You probably don't have a "content, read, class( image ) section( media )" rule or something (section part depends on where you save the image, class part could be banner instead but it depends on what content you don't have access to).
Go read in the doc about "user roles" and "access rules" if you are unsure what I'm talking about.
http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/access_control

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Patrick Renaud

Thursday 26 June 2008 1:40:29 am

I've just had exactly the same problem, and the answer given by André was the right one.
Thanks ! :)

Ca, c'est fait !

eZ debug

Timing: Jan 18 2025 16:04:12
Script start
Timing: Jan 18 2025 16:04:12
Module start 'content'
Timing: Jan 18 2025 16:04:13
Module end 'content'
Timing: Jan 18 2025 16:04:13
Script end

Main resources:

Total runtime0.6976 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.0057 589.1563180.8359
Module start 'content' 0.00570.6882 769.9922580.7422
Module end 'content' 0.69380.0037 1,350.734442.0859
Script end 0.6975  1,392.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4101140.0002
Check MTime0.00130.1859140.0001
Mysql Total
Database connection0.00070.095810.0007
Mysqli_queries0.659294.4996600.0110
Looping result0.00050.0755580.0000
Template Total0.670996.220.3355
Template load0.00210.303620.0011
Template processing0.668895.870420.3344
Template load and register function0.00010.017310.0001
states
state_id_array0.00090.133310.0009
state_identifier_array0.00160.223820.0008
Override
Cache load0.00170.2480210.0001
Sytem overhead
Fetch class attribute can translate value0.00040.058630.0001
Fetch class attribute name0.00110.153150.0002
XML
Image XML parsing0.00130.184430.0004
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00130.1805240.0001
String conversion0.00000.000730.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs