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 !

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 31 2025 04:16:44
Script start
Timing: Jan 31 2025 04:16:44
Module start 'layout'
Timing: Jan 31 2025 04:16:44
Module start 'content'
Timing: Jan 31 2025 04:16:44
Module end 'content'
Timing: Jan 31 2025 04:16:44
Script end

Main resources:

Total runtime0.0156 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.0056 588.1563151.2109
Module start 'layout' 0.00560.0026 739.367236.6484
Module start 'content' 0.00820.0055 776.015690.1563
Module end 'content' 0.01370.0018 866.171933.9922
Script end 0.0156  900.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002314.7560140.0002
Check MTime0.00106.2409140.0001
Mysql Total
Database connection0.00138.084710.0013
Mysqli_queries0.002415.517630.0008
Looping result0.00000.102310.0000
Template Total0.00159.610.0015
Template load0.00117.272710.0011
Template processing0.00042.278710.0004
Override
Cache load0.00074.172810.0007
General
dbfile0.00138.524280.0002
String conversion0.00000.045840.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