Issue Bug Closed

#28523Problems with new Card Layout in backend modules

Philipp Gampe 07/27/11, 18:59 updated 06/01/13, 14:45

Description

PHP Warning: explode() expects parameter 2 to be string, array given in t3lib/class.t3lib_div.php line 1430
PHP Warning: array_map() [function.array-map]: Argument #2 should be an array in t3lib/class.t3lib_div.php line 1432
PHP Warning: Invalid argument supplied for foreach() in t3lib/class.t3lib_loadmodules.php line 409

This is due to commit:120d38d [FEATURE] Speed-up Backend with CardLayout.

There a new array is introduced inside GLOBALS[‘TBE_MODULES’] and called [‘_JSINIT’].

However $GLOBALS[‘TBE_MODULES’] should only contain strings (at least this is assumed by the code in t3lib_loadmodules). [‘_JSINIT’] is an array and thus leads to those warnings.

I am not sure how to fix this easily. Anyone?

Reviews 2