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!