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.

eZ debug

Timing: Jan 19 2025 03:32:33
Script start
Timing: Jan 19 2025 03:32:33
Module start 'layout'
Timing: Jan 19 2025 03:32:33
Module start 'content'
Timing: Jan 19 2025 03:32:34
Module end 'content'
Timing: Jan 19 2025 03:32:34
Script end

Main resources:

Total runtime1.4992 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.2813152.6406
Module start 'layout' 0.00670.0046 741.921939.4766
Module start 'content' 0.01131.4862 781.3984555.7109
Module end 'content' 1.49760.0016 1,337.109412.1250
Script end 1.4991  1,349.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2278160.0002
Check MTime0.00140.0920160.0001
Mysql Total
Database connection0.00140.096310.0014
Mysqli_queries1.441996.1796600.0240
Looping result0.00070.0455580.0000
Template Total1.459597.420.7297
Template load0.00190.129520.0010
Template processing1.457597.223820.7288
Template load and register function0.00010.007210.0001
states
state_id_array0.00250.167610.0025
state_identifier_array0.00120.077420.0006
Override
Cache load0.00160.1062270.0001
Sytem overhead
Fetch class attribute can translate value0.00090.061120.0005
Fetch class attribute name0.00130.086160.0002
XML
Image XML parsing0.00120.076820.0006
class_abstraction
Instantiating content class attribute0.00000.001280.0000
General
dbfile0.00160.1045240.0001
String conversion0.00000.000640.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 6

Time used to render debug report: 0.0002 secs