Forums / General / File download problem

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!

eZ debug

Timing: Jan 18 2025 02:21:42
Script start
Timing: Jan 18 2025 02:21:42
Module start 'content'
Timing: Jan 18 2025 02:21:43
Module end 'content'
Timing: Jan 18 2025 02:21:43
Script end

Main resources:

Total runtime0.7698 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.7188180.8516
Module start 'content' 0.00570.7579 769.5703547.6250
Module end 'content' 0.76360.0061 1,317.195342.1328
Script end 0.7697  1,359.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.3607140.0002
Check MTime0.00120.1584140.0001
Mysql Total
Database connection0.00060.077410.0006
Mysqli_queries0.724694.1274580.0125
Looping result0.00050.0689560.0000
Template Total0.746497.020.3732
Template load0.00230.303820.0012
Template processing0.744096.652720.3720
Template load and register function0.00010.012210.0001
states
state_id_array0.00090.112210.0009
state_identifier_array0.00080.109820.0004
Override
Cache load0.00200.2562210.0001
Sytem overhead
Fetch class attribute can translate value0.00040.055620.0002
Fetch class attribute name0.00150.189250.0003
XML
Image XML parsing0.00100.131120.0005
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00240.3115250.0001
String conversion0.00000.000530.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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