Project

General

Profile

Actions

Bug #23989

closed

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

Added by Daniel Mueller about 14 years ago. Updated about 6 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 #1

Updated by Daniel Mueller about 14 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
}

Actions #2

Updated by Susanne Moog almost 14 years ago

trunk rev 9977
4.4 rev 9978

Actions #3

Updated by Ernesto Baschny over 11 years ago

  • Target version deleted (1088)
Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF