Project

General

Profile

Actions

Bug #19810

closed

Broken fe_adminLib.inc

Added by Marcus Krause almost 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2009-01-13
Due date:
% Done:

0%

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

Description

If there's an extension installed that depends on fe_adminLib.inc (here feuser_admin), opening a page with that plugin results in following error:
Argument 2 passed to tslib_cObj::fillInMarkerArray() must be an array, null given, called in /var/www/www-src/typo3/trunk/typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc on line 1028 and defined in /var/www/www-src/typo3/trunk/typo3/sysext/cms/tslib/class.tslib_content.php on line 3232

(issue imported from #M10119)


Files

10119.diff (857 Bytes) 10119.diff Administrator Admin, 2009-01-14 19:30
Actions #1

Updated by Steffen Kamper almost 16 years ago

here is a fix.
The question: how does this happen? $this->dataArr is initialized as array and only overwritten by GPvars

Actions #2

Updated by Marcus Krause almost 16 years ago

patch works here

Actions #3

Updated by Marcus Krause about 15 years ago

in user_feAdmin->init() it is always been asked for transferred data;
if there's no data transmitted (initial display of form), then value of $this->dataArr is NULL

with TYPO3 4.3 we now have type hints, so that a NULL as 2nd argument for tslib_cObj::fillInMarkerArray() raises an error

like already said - patch works; I'd like to see it in the core ;-)

Actions #4

Updated by Steffen Kamper about 15 years ago

thanks for the reminder, is in core list now.

Actions #5

Updated by Steffen Kamper about 15 years ago

committed to trunk, rev 6454

Actions

Also available in: Atom PDF