Problem for download binary file on front office

Author Message

Stéphane Bullier

Monday 25 June 2007 1:39:58 am

Hello,

I have a specific class for document with a attribute of datatype "file".

After have created an instance of this object, I can't download the file on the front office with this link : http://<mydomain>/content/download/571/4457/version/1/file/guideauditeur2006.pdf

I have kernel error 3 : 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.

This work perfectly on black office !!

What is the problem ? Thank for help.

Stéphane

Łukasz Serwatka

Monday 25 June 2007 3:18:17 am

Hi,

Possible reason for this is that there is a difference between site.ini.[FileSettings].VarDir per siteaccess. Both admin and public siteaccess should use the same VarDir when they use same database.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Stéphane Bullier

Monday 25 June 2007 4:29:49 am

Hello Lukasz Serwatka,

Thank you very much for your answer. My problem is solve.

I forgot to define the parameter VarDir in public site.ini.append.php.

Bye

Stéphane

Łukasz Serwatka

Monday 25 June 2007 4:51:49 am

You are welcome Stéphane, good luck! ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.