eZBinaryFile

Author Message

Vincent Saulnier

Friday 07 February 2003 7:36:27 am

When I want to create an instance of a class using an eZBinaryFile datatype an eZPublish error occurs.

Does anybody know somethig about this.
It's a very important feature for my present project.

Thanks

Vincent Saulnier

Friday 07 February 2003 7:38:02 am

Here is the error specified and the debug output :

Fatal error: Call to a member function on a non-object in /mnt/disk/<ez install dir>/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php on line 106
Fatal error: eZ publish did not finish it's request

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

eZ debug
Notice: eZLocale::localeFile Feb 07 2003 10:32:52
Requesting eng-GB.ini

Notice: eZLocale::localeFile Feb 07 2003 10:32:52
Requesting eng-GB.ini

Timing: Feb 07 2003 10:32:52
Script start

Timing: Feb 07 2003 10:32:52
Module start 'content'

Warning: PHP Feb 07 2003 10:32:52
Undefined variable: validatedAttributesLog in /mnt/disk/<ez install dir>/kernel/content/attribute_edit.php on line 263

Warning: PHP Feb 07 2003 10:32:52
Undefined variable: OmitSectionSetting in /mnt/disk/<ez install dir>/kernel/content/attribute_edit.php on line 273

Debug: assigned nodes array Feb 07 2003 10:32:52
array(1) {
[0]=>
&object(eznodeassignment)(11) {
["TempNode"]=>
NULL
["PersistentDataDirty"]=>
bool(false)
["ID"]=>
string(3) "160"
["RemoteID"]=>
string(1) "0"
["ContentobjectID"]=>
string(2) "20"
["ContentObjectVersion"]=>
string(1) "1"
["ParentNode"]=>
string(1) "2"
["SortField"]=>
string(1) "1"
["SortOrder"]=>
string(1) "1"
["Main"]=>
string(1) "1"
["FromNodeID"]=>
string(1) "0"
}
}


Debug: assigned nodes array Feb 07 2003 10:32:52
array(1) {
[0]=>
&object(eznodeassignment)(11) {
["TempNode"]=>
NULL
["PersistentDataDirty"]=>
bool(false)
["ID"]=>
string(3) "160"
["RemoteID"]=>
&string(1) "0"
["ContentobjectID"]=>
string(2) "20"
["ContentObjectVersion"]=>
string(1) "1"
["ParentNode"]=>
&string(1) "2"
["SortField"]=>
string(1) "1"
["SortOrder"]=>
string(1) "1"
["Main"]=>
string(1) "1"
["FromNodeID"]=>
string(1) "0"
}
}


Error: eZTemplate @ content/edit.tpl:1[0] Feb 07 2003 10:32:52
Unknown template variable 'node' in namespace ''

Error: eZTemplate @ content/edit.tpl:1[0] Feb 07 2003 10:32:52
Unknown template variable 'node' in namespace ''

Error: eZINI Feb 07 2003 10:32:52
Undefined group: 'BinaryFileSettings'

Error: eZBinaryFileHandler::instance Feb 07 2003 10:32:52
Could not find binary file handler ''

Vincent Saulnier

Friday 07 February 2003 7:43:18 am

I've seen that that bug has allready been registered in the bug reports section :

http://www.ez.no/bug/bugview/1852/

But I really need a quick answer.

Vincent Saulnier

Monday 10 February 2003 9:54:56 am

I found the solution :

in <ez install dir>/settings/ there was no file.ini

I created it with this inside :

#?ini charset="iso-8859-1"?
# eZ publish configuration file for workflows.

[BinaryFileSettings]
Handler=ezfilepasstrough

And it worked well!

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 30 2025 21:46:29
Script start
Timing: Jan 30 2025 21:46:29
Module start 'layout'
Timing: Jan 30 2025 21:46:29
Module start 'content'
Timing: Jan 30 2025 21:46:29
Module end 'content'
Timing: Jan 30 2025 21:46:29
Script end

Main resources:

Total runtime0.0242 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.0057 588.1250151.2109
Module start 'layout' 0.00570.0044 739.3359220.6875
Module start 'content' 0.01010.0127 960.02341,001.6797
Module end 'content' 0.02280.0014 1,961.703133.9922
Script end 0.0242  1,995.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.3449140.0002
Check MTime0.00114.6688140.0001
Mysql Total
Database connection0.00072.814110.0007
Mysqli_queries0.002912.148730.0010
Looping result0.00000.062010.0000
Template Total0.00104.110.0010
Template load0.00083.255910.0008
Template processing0.00020.858010.0002
Override
Cache load0.00052.228610.0005
General
dbfile0.00031.164080.0000
String conversion0.00000.033540.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.0002 secs