Project

General

Profile

Actions

Bug #23989

closed

Argument 3 passed to t3lib_frontendedit::displayEditIcons() must be an array, null given

Added by Daniel Mueller over 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-11-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

t3lib_error_Exception

PHP Catchable Fatal Error: Argument 3 passed to t3lib_frontendedit::displayEditIcons() must be an array, null given, called in /home/u0052496198/public_html/typo3-4.4.4-final/cms/typo3/sysext/cms/tslib/class.tslib_content.php on line 8154 and defined in /home/u0052496198/public_html/typo3-4.4.4-final/cms/t3lib/class.t3lib_frontendedit.php line 135

Editing sysext/cms/class.tslib_content.php at before line 8153 helps to provide an empty array, when no array is given:

if(!is_array()) $conf = array();
$content = $GLOBALS['BE_USER']->frontendEdit->displayEditIcons($content, $params, $conf, $currentRecord, $dataArr, $addURLParamStr);

It's hard to reproduce. But somehow I managed to set $conf to null. Possibly unsetting displayEditIcons in typoscript:
displayEditIcons >

I noticed this in Typo3 4.3.3 for the first time:
http://bugs.typo3.org/view.php?id=15194

I wonder why t3lib_frontendedit::displayEditIcons() expects an array, when many other functions don't do any type-checking at all.
(issue imported from #M16308)


Files

bug_16308.diff (777 Bytes) bug_16308.diff Administrator Admin, 2010-11-08 22:26
16308_v2.diff (2.57 KB) 16308_v2.diff Administrator Admin, 2010-11-26 10:34

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #23245: Argument 3 passed to t3lib_frontendedit::displayEditIcons() must be an array, null givenClosedSusanne Moog2010-07-21

Actions
Actions

Also available in: Atom PDF