Project

General

Profile

Actions

Bug #30623

closed

call cObj->includeLibs without check if $conf is an array

Added by Frank Nägler about 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-10-07
Due date:
% Done:

0%

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

Description

In some situations $conf is not an array. e.g. if an extension has a wrong typoscript configuration.
in this case there are hundreds of error_log entries like this:

Core: Error handler (FE): PHP Catchable Fatal Error: Argument 1 passed to tslib_cObj::includeLibs() must be an array, string given, called in /.../htdocs/typo3-src/typo3_src-4.5.6/typo3/sysext/cms/tslib/content/class.tslib_content_user.php on line 50 and defined in /.../htdocs/typo3-src/typo3_src-4.5.6/typo3/sysext/cms/tslib/class.tslib_content.php line 6783

On line 50 in cms/tslib/content/class.tslib_content_user.php the function cObj->includeLibs is called without a check if the given argument ($conf) is an array.

I have fixed this, the patch file is attached.


Files

bug_30623.diff (1 KB) bug_30623.diff Patch file for this issue Frank Nägler, 2011-10-07 13:00

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #23347: Missleading Error with Emtpy USER_INT: Catchable fatal error: Argument 1 passed to tslib_cObj::includeLibs() must be an arrayClosed2010-08-04

Actions
Actions

Also available in: Atom PDF