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.