Cannot download and upload file in object

Author Message

Andrew K

Tuesday 05 December 2006 2:51:48 pm

I've been trying to get some help in another post but no one has responded. I have an object class with the file uploads. When ever I upload any file type and go to the user side of the web site, the file upload shows 0 size and gives me an "object unavailable" error when I click it.

I can see the file and download it from the admin just fine. Please please help!

--Andrew

Ɓukasz Serwatka

Wednesday 06 December 2006 2:51:55 am

Hi Andrew,

Does your public siteaccess share the same VarDir (check site.ini.append.php)? If you use 2 siteaccess with one database, make sure that they use same VarDir, both public and admin siteaccess.

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

Andrew K

Friday 15 December 2006 8:37:05 pm

Yep. Turns out the VarDir for my admin site access was different than user VarDir. Setting that correctly and moving the storage directory fixed the problem. Thanks a ton!

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 31 2025 01:27:53
Script start
Timing: Jan 31 2025 01:27:53
Module start 'layout'
Timing: Jan 31 2025 01:27:53
Module start 'content'
Timing: Jan 31 2025 01:27:53
Module end 'content'
Timing: Jan 31 2025 01:27:53
Script end

Main resources:

Total runtime0.0318 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.3672151.2266
Module start 'layout' 0.00490.0044 739.5938220.7188
Module start 'content' 0.00940.0205 960.3125997.7734
Module end 'content' 0.02980.0019 1,958.085929.9922
Script end 0.0318  1,988.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00288.8838140.0002
Check MTime0.00113.5233140.0001
Mysql Total
Database connection0.00072.082910.0007
Mysqli_queries0.00268.255430.0009
Looping result0.00000.053210.0000
Template Total0.00144.410.0014
Template load0.00092.858110.0009
Template processing0.00051.517510.0005
Override
Cache load0.00061.988610.0006
General
dbfile0.003410.778080.0004
String conversion0.00000.024740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs