Project

General

Profile

Actions

Bug #23306

closed

DB browser is unusable

Added by Alienor.net almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-07-29
Due date:
% Done:

0%

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

Description

If you click on DB browser icon from, for example, the "db mount" field of a BE Group record, the usual page tree is replaced with the following error :

t3lib_error_Exception
PHP Catchable Fatal Error: Argument 2 passed to t3lib_iconWorks::getSpriteIconForRecord() must be an array, null given, called in [...]/typo3/class.browse_links.php on line 1922 and defined in [...]/t3lib/class.t3lib_iconworks.php line 735

This was introduced by the patch to the bug 14880 that added array type hinting to the second argument of getSpriteIconForRecord() method.
As no real record is found when $this->expandPage = 0 (the root page - which is selected by default), a null value get passed to the method, hence the error.
Since the selectable icon is not needed for the root page, the new patch adds a condition that checks if a valid record was found before calling the getSpriteIconForRecord() method and related code. TYPO3 4.4 and the trunk are concerned.
(issue imported from #M15292)


Files

class.browse_links.php.patch (1.8 KB) class.browse_links.php.patch Administrator Admin, 2010-07-29 18:57
rfc#15292_v2.diff (1.82 KB) rfc#15292_v2.diff Administrator Admin, 2010-07-29 19:44
ExceptionInfo.html (6.05 KB) ExceptionInfo.html Administrator Admin, 2010-08-01 13:52

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #23008: getSpriteIconForRecord() accepts row data which is not an arrayClosedSusanne Moog2010-06-26

Actions
Related to TYPO3 Core - Bug #23335: it's not possible to edit BE_users created by earlier typo3-versionClosed2010-08-02

Actions
Actions

Also available in: Atom PDF