Problem with file attribute.

Author Message

Mohammad Tufail

Thursday 27 March 2008 7:32:40 am

Hi,

I have created a custom class with three attributes having identifier title <b>textline</b>, description <b>text block</b> and file_upload <b>File</b>. In the administration interface it is shown correctly with filename and size. But on the user end of the website the file name is shown correctly but the file size is shown 0 B and also when when we click on the file name the following error appears.

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.

Any Suggestion.

Ɓukasz Serwatka

Friday 28 March 2008 1:17:40 am

Hi,

Make sure that public siteaccess uses the same VarDir what admin siteaccess.

site.ini.append.php:
[FileSettings]
VarDir=var/your_site

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 07:03:12
Script start
Timing: Jan 19 2025 07:03:12
Module start 'layout'
Timing: Jan 19 2025 07:03:12
Module start 'content'
Timing: Jan 19 2025 07:03:14
Module end 'content'
Timing: Jan 19 2025 07:03:14
Script end

Main resources:

Total runtime1.6700 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.1563152.6250
Module start 'layout' 0.00560.0031 741.781339.4453
Module start 'content' 0.00871.6596 781.2266532.9766
Module end 'content' 1.66830.0016 1,314.20318.1641
Script end 1.6699  1,322.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2021160.0002
Check MTime0.00140.0830160.0001
Mysql Total
Database connection0.00070.040510.0007
Mysqli_queries1.619296.9603540.0300
Looping result0.00060.0373520.0000
Template Total1.634597.920.8173
Template load0.00200.121120.0010
Template processing1.632597.755120.8162
Template load and register function0.00010.006710.0001
states
state_id_array0.00120.074210.0012
state_identifier_array0.00320.193920.0016
Override
Cache load0.00170.0990170.0001
Sytem overhead
Fetch class attribute can translate value0.00090.054020.0005
Fetch class attribute name0.00120.069840.0003
XML
Image XML parsing0.00120.070220.0006
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00210.1271240.0001
String conversion0.00000.000440.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs