Issue Bug Closed

#15899Creating content element with new templavoila causes the following error when editing page properties

David Toshack 03/26/06, 14:16 updated 04/04/06, 13:32

Description

Warning: array_unique(): The argument should be an array in root_path_to_TYPO3core_directory/t3lib/class.t3lib_tceforms.php on line 2076

Warning: in_array(): Wrong datatype for second argument in root_path_to_TYPO3core_directory/t3lib/class.t3lib_tceforms.php on line 2087

Fatal error: Only variables can be passed by reference in root_path_to_TYPO3core_directory/t3lib/class.t3lib_tceforms.php on line 2088

Doesn’t happen with TER version. Problem occured with HEAD & templavoila-0-6-0 tag

Seems to be something to do with language metadata. Corrosponding lines:

Line 2076: $editData[‘meta’][‘currentLangId’] = array_unique($editData[‘meta’][‘currentLangId’]);

Line 2087: if (!in_array(‘DEF’,$editData[‘meta’][‘currentLangId’])) {

Line 2088: array_unshift($editData[‘meta’][‘currentLangId’],‘DEF’);

(issue imported from #M2989)

Reviews 0

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