Enhancedbinaryfile

Author Message

Albert Balagueró

Tuesday 08 June 2010 6:42:44 am

Hello,

have somebody problems with enhancedbinaryfile?
I use it in a form information collection, the file is uploaded ok and I receive a mail with the link of the file.

The problem is that when more forms are summited, I lost the links of the files uploaded, I think they are deleted and renamed with the new ones.

When I click the link in the admin area, in the information collection, I get no file, the link is active, but no image.

Somebody knows where can be the problem?

Thank you in advance.

Steven E. Bailey

Tuesday 08 June 2010 8:52:45 am

Check your <VarDir>/storage/<DownloadPath> directory to see if those files are there - they should be a hash and therefore unique even if it's the same file/same name. I have a test directory with multiple versions of the same file named a different hash.

<VarDir> is under site.ini [FileSetting]

<DownloadPath> is in the extension module.ini

This is assuming that you have the latest version (1.1) of the extension and not the version for eZPublish 3.x. If you have the 3.x version then... sorry... I haven't looked at it in years and the extension has been extensively rewritten since then.

The other thing that may be going on is if you have MaxFiles then anything more than MaxFiles will be deleted - if you have a busy site and that number is set low this may occur before you have a chance to look at it. Read the readme.txt and the comments in module.ini for more information.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Albert Balagueró

Tuesday 08 June 2010 9:29:15 am

Thank you for your fast response Steven.

The version I got is the release 3 of enhancedbinaryfile. I'm running under ezPublish 4.2.
I checked all the things you have told but I didn't find the solution.

<VarDir> under site.ini [FileSetting] it's ok and <DownloadPath> is ok too. In fact, the files are stored ok. The problem is that the files are replaced by others (the new ones). But EUREKA!, i think i found the problem, I saw that there are duplicates of image with diferent hash and, VOILÀ!... I counted the number of files and there are 25 files!!! Looking the module.ini you told me, I saw:

[RemoveFiles]MaxFiles=25

Now I'm understanding which is the problem!!! I'm an idiot!!! Maybe some user have sent the form twice and the files had been uploaded twice too, but until 25. The older ones have been deleted!!!!!

I'm gonna change this number and I think that this will solve the problem. It is logical, when the number of files reaches 25, older ones are removed... I'm really stupid... buff...

Thank you very much for your help Steven.

See you soon online!

Albert Balagueró

Tuesday 08 June 2010 10:05:56 am

Solved,
the error was mine, in module.ini of the extension:

[RemoveFiles]MaxFiles=25

I've changed the number for a bigger one and all its ok, all the files are where it must be, any file removed or deleted.

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 18 2025 02:08:12
Script start
Timing: Jan 18 2025 02:08:12
Module start 'layout'
Timing: Jan 18 2025 02:08:12
Module start 'content'
Timing: Jan 18 2025 02:08:12
Module end 'content'
Timing: Jan 18 2025 02:08:12
Script end

Main resources:

Total runtime0.5038 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.0063 587.8125152.6094
Module start 'layout' 0.00630.0028 740.421939.4141
Module start 'content' 0.00910.4933 779.8359559.5625
Module end 'content' 0.50250.0013 1,339.398412.1875
Script end 0.5038  1,351.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.7348160.0002
Check MTime0.00130.2623160.0001
Mysql Total
Database connection0.00110.218710.0011
Mysqli_queries0.443087.9308600.0074
Looping result0.00080.1554580.0000
Template Total0.475594.420.2378
Template load0.00220.430120.0011
Template processing0.473393.948620.2367
Template load and register function0.00020.046810.0002
states
state_id_array0.00100.198010.0010
state_identifier_array0.00080.159820.0004
Override
Cache load0.00190.3765360.0001
Sytem overhead
Fetch class attribute can translate value0.00080.162020.0004
Fetch class attribute name0.00260.515750.0005
XML
Image XML parsing0.00060.126820.0003
class_abstraction
Instantiating content class attribute0.00000.002750.0000
General
dbfile0.00080.1561170.0000
String conversion0.00000.001740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs