can't cancel object editing!

Author Message

mario feichtinger

Wednesday 21 May 2003 12:42:43 am

hi!
i have a class Download with one textline for the titel and a binary field.
i can create an object of this class can edit it save it and store in draft. but
if i cancel the editing it comes to following error message:
Fatal error: Call to a member function on a non-object in /usr/local/typo3/htdocs/ez2/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php on line 186
Fatal error: eZ publish did not finish it's request

The execution of eZ publish was abruptly ended, the debug output is present below.

thanks for help

Paul Borgermans

Friday 23 May 2003 4:39:32 am

That's a bug which shows up also when you try to delete the binary file. No fix yet.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Selmah Maxim

Saturday 24 May 2003 4:20:43 am

Hi ..

maybe this will be the bug fix, just add this lines and test it !

file :
kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype/ezbinaryfile.php

from line 91 to line 94 :

case 'filename':
{
$storedFile = eZBinaryFileHandler::storedFilename( $this );
}

i didn`t try it, so u have to test, the problem was that ezbinaryfiletype.php request variable from ezbinaryfile.php via function attribute with value 'filename' , which is missing from attribute function !

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 11:29:03
Script start
Timing: Jan 18 2025 11:29:03
Module start 'layout'
Timing: Jan 18 2025 11:29:03
Module start 'content'
Timing: Jan 18 2025 11:29:04
Module end 'content'
Timing: Jan 18 2025 11:29:04
Script end

Main resources:

Total runtime0.7099 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 594.4844152.6250
Module start 'layout' 0.00580.0048 747.109439.4453
Module start 'content' 0.01060.6978 786.5547568.2422
Module end 'content' 0.70840.0015 1,354.79698.1641
Script end 0.7099  1,362.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5243160.0002
Check MTime0.00130.1891160.0001
Mysql Total
Database connection0.00060.079710.0006
Mysqli_queries0.657092.5423590.0111
Looping result0.00090.1243570.0000
Template Total0.675095.120.3375
Template load0.00220.307720.0011
Template processing0.672894.764520.3364
Template load and register function0.00010.020010.0001
states
state_id_array0.00260.367510.0026
state_identifier_array0.00200.284720.0010
Override
Cache load0.00180.2595260.0001
Sytem overhead
Fetch class attribute can translate value0.00090.132430.0003
Fetch class attribute name0.00140.197240.0003
XML
Image XML parsing0.00080.111230.0003
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00080.1182170.0000
String conversion0.00000.002040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs