Can't access images as related objects

Author Message

Eric Sherwood

Wednesday 29 March 2006 4:56:33 pm

When I add an image to an article as a related object, I include the code listed below the image (ex. <embed href='ezobject://111' />). When I look at it on the webpage, I get the following in place of the image: You do not have sufficient permissions to view this object.

Any ideas on this one, guys?

Xavier Dutoit

Wednesday 29 March 2006 10:11:03 pm

Hi,

It probably means that...You do not have sufficient permissions to view this object ;)

Change the access rights to grant read access for the user (probably anonymous) on the section media

X+

P.S. suggestion for ez: set that as the default, everyone get caught on that one ;)

http://www.sydesy.com

Ciprian Popovici

Wednesday 29 March 2006 11:07:51 pm

Yeah, but at least they learn something from it. :) Besides, I'm not sure I want default read rights to the entire "Media files" tree.

Mindshare Interactive Campaigns

Thursday 22 June 2006 1:47:56 pm

I enabled content/read on Standard and Media sections, as well as content/view-embed for both sections and my anonymous user still can't view these embedded objects! Any ideas?

UPDATE: when I try to view the image directly in my public siteaccess, I get this debug output:

Function required:
Module : content
Function : read
ClassID : 5
MainNodeID : 86
Policies that didn't match:
PolicyID : p_358
Limitation : Section
Required : 1,

Note the empty space after "1, " above. That should be showing the Media section ID, right? Any ideas why it isn't?

UPDATE AGAIN: Clearing the cache from the command line apparently isn't powerful enough. I had to use the "Clear All Caches" button in the admin.

http://www.mindshare.net

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 01:23:45
Script start
Timing: Jan 31 2025 01:23:45
Module start 'layout'
Timing: Jan 31 2025 01:23:45
Module start 'content'
Timing: Jan 31 2025 01:23:45
Module end 'content'
Timing: Jan 31 2025 01:23:45
Script end

Main resources:

Total runtime0.0222 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2500151.2266
Module start 'layout' 0.00470.0036 739.4766220.7188
Module start 'content' 0.00840.0124 960.1953997.8047
Module end 'content' 0.02080.0014 1,958.000033.9922
Script end 0.0221  1,991.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.3376140.0002
Check MTime0.00104.3715140.0001
Mysql Total
Database connection0.00062.776610.0006
Mysqli_queries0.002511.271930.0008
Looping result0.00000.049510.0000
Template Total0.00104.510.0010
Template load0.00083.467510.0008
Template processing0.00021.065410.0002
Override
Cache load0.00052.387010.0005
General
dbfile0.00115.037680.0001
String conversion0.00000.031240.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