File download problem

Author Message

Philip K.

Thursday 22 April 2010 2:56:45 am

Hello world!

I'm having problems concerning the line view of a file object. Whenever I click the file to download it, I get a Kernel Error (3) with following message:

Object is unavailable
The object you requested is not currently available.
Possible reasons for this are:
- The id or name of the object was misspelled, try changing it.
- The object is no longer available on the site.

To link the file I used this code:

<a href={concat( '/content/download/', $node.data_map.file.contentobject_id, '/', $node.data_map.file.id,'/version/', $node.data_map.file.version , '/file/', $node.data_map.file.content.original_filename|urlencode )|ezurl}>filename</a>

In the admin interface the file (same url) can be downloaded... curious...

I'm using a 4.2 installation.

Any ideas?

Thanks for your help.

Linux is like a wigwam; no windows, now gates, and apache inside!

Peter Keung

Thursday 22 April 2010 7:49:27 am

My first check would be to see whether the Anonymous role has access to content/read for the relevant content class in the relevant section.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Philip K.

Friday 23 April 2010 2:38:05 am

OMG...

There was a mistake in the site.ini configuration file. Admin- and user siteaccess where set up to use different storage directories.

Linux is like a wigwam; no windows, now gates, and apache inside!

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 18 2025 04:54:41
Script start
Timing: Jan 18 2025 04:54:41
Module start 'layout'
Timing: Jan 18 2025 04:54:41
Module start 'content'
Timing: Jan 18 2025 04:54:42
Module end 'content'
Timing: Jan 18 2025 04:54:42
Script end

Main resources:

Total runtime0.7925 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.9375152.6094
Module start 'layout' 0.00580.0033 741.546939.4141
Module start 'content' 0.00910.7818 780.9609542.5625
Module end 'content' 0.79090.0015 1,323.523412.1875
Script end 0.7924  1,335.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4066160.0002
Check MTime0.00130.1689160.0001
Mysql Total
Database connection0.00080.099610.0008
Mysqli_queries0.737393.0352570.0129
Looping result0.00060.0724550.0000
Template Total0.760596.020.3802
Template load0.00190.235220.0009
Template processing0.758695.726820.3793
Template load and register function0.00010.016810.0001
states
state_id_array0.00100.131510.0010
state_identifier_array0.00120.152220.0006
Override
Cache load0.00150.1890210.0001
Sytem overhead
Fetch class attribute can translate value0.00060.079020.0003
Fetch class attribute name0.00120.147850.0002
XML
Image XML parsing0.00550.690220.0027
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00590.7485230.0003
String conversion0.00000.005640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs