Bug #23989

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

Added by Daniel Mueller over 8 years ago. Updated 8 months ago.

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

0%

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)

bug_16308.diff View (777 Bytes) Administrator Admin, 2010-11-08 22:26

16308_v2.diff View (2.57 KB) Administrator Admin, 2010-11-26 10:34


Related issues

Duplicated by TYPO3 Core - Bug #23245: Argument 3 passed to t3lib_frontendedit::displayEditIcons() must be an array, null given Closed 2010-07-21

History

#1 Updated by Daniel Mueller over 8 years ago

lib.stdheader >
lib.stdheader = CASE
lib.stdheader{
key.field = header_layout
0 = TEXT
0{
field = header
fieldRequired = header
wrap = <h3>|</h3>
#the next line breaks frontend-editing when activating edit-icons
editIcons = tt_content.header.20.editIcons
}
1 < .0
1.wrap = <h4>|</h4>
2 < .0
2.wrap = <h5>|</h5>
3 < .0
3.wrap = <h6>|</h6>
default =< .0
}

#2 Updated by Susanne Moog over 8 years ago

trunk rev 9977
4.4 rev 9978

#3 Updated by Ernesto Baschny almost 6 years ago

  • Target version deleted (1088)

#4 Updated by Benni Mack 8 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF