Issue Bug Closed

#21122Fatal Error in Configuration > $TBE_MODULES

Bastian Waidelich 09/22/09, 11:32 updated 08/06/10, 13:28

Description

When selecting “$TBE_MODULES (BE Modules)” in the Configuration module I’m getting a
Catchable fatal error: Object of class Tx_Extbase_Dispatcher could not be converted to string in t3lib\class.t3lib_div.php on line 1245

The problem is, that Extbase puts an instance of Tx_Extbase_Dispatcher into the $TBE_MODULES array in ext_tables.php and the t3lib_arraybrowser does not support objects.
We could fix this by adding an is_object check to the arraybrowser. But I’d rather change the Extbase behavior from
$TBE_MODULES[‘_dispatcher’][] = t3lib_div::makeInstance(‘Tx_Extbase_Dispatcher’);
to
$TBE_MODULES[‘_dispatcher’][] = ‘Tx_Extbase_Dispatcher’;
as it seems superfluous to store an instance of the dispatcher there.

Patch follows

Patch follows
(issue imported from #M12037)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.