Problem with required file attribute

Author Message

Ivo Lukac

Thursday 15 January 2009 4:33:33 am

We sometimes have a problem with uploading file to object of custom class. File attribute is required. When user saves newly created object with uploaded file no error is reported. After that sometimes (with no specific pattern) uploaded file doesn't exist any more.

System has files in mysql db (ez 3.10.0).

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Ivo Lukac

Tuesday 20 January 2009 1:17:54 am

Just realized that every attribute after that file attribute isn't saved either.

How is possible that some attributes are saved and some are not? Isn't the save action in transaction?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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 04:30:40
Script start
Timing: Jan 19 2025 04:30:40
Module start 'layout'
Timing: Jan 19 2025 04:30:40
Module start 'content'
Timing: Jan 19 2025 04:30:40
Module end 'content'
Timing: Jan 19 2025 04:30:40
Script end

Main resources:

Total runtime0.5868 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1563152.6250
Module start 'layout' 0.00590.0025 741.781339.4609
Module start 'content' 0.00830.5768 781.2422488.4063
Module end 'content' 0.58510.0016 1,269.64848.1563
Script end 0.5867  1,277.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.6645160.0002
Check MTime0.00200.3358160.0001
Mysql Total
Database connection0.00070.120210.0007
Mysqli_queries0.537791.6469520.0103
Looping result0.00050.0915500.0000
Template Total0.551794.020.2758
Template load0.00290.488620.0014
Template processing0.548893.531920.2744
Template load and register function0.00010.017210.0001
states
state_id_array0.00170.289110.0017
state_identifier_array0.00140.244720.0007
Override
Cache load0.00250.4181100.0002
Sytem overhead
Fetch class attribute can translate value0.00080.138210.0008
Fetch class attribute name0.00170.289930.0006
XML
Image XML parsing0.00050.082110.0005
class_abstraction
Instantiating content class attribute0.00000.002440.0000
General
dbfile0.00250.4181170.0001
String conversion0.00000.001640.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs