Project

General

Profile

Actions

Bug #19589

closed

Cannot use string offset as an array in function tslib_pibase()

Added by Tania about 16 years ago. Updated about 11 years ago.

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

0%

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

Description

Since 4.2.0 i have found this error as PHP5 is more restricted about the use of arrays and I just checked in 4.2.2 and the error is still there.

/tslib/class.tslib_pibase.php
LINES 221 and 808

The error says:

Fatal error: Cannot use string offset as an array in .../typo3_src-4.2.2/typo3/sysext/cms/tslib/class.tslib_pibase.php on line 221

Line 221:

if ($GLOBALS['TSFE']->config['config']['language']) {
$this->LLkey = $GLOBALS['TSFE']->config['config']['language'];
if ($GLOBALS['TSFE']->config['config']['language_alt']) {
$this->altLLkey = $GLOBALS['TSFE']->config['config']['language_alt'];
}
}

The quick fix would be:

$configTSFE = $GLOBALS['TSFE']->config['config'];
if ($configTSFE['language']) {
...

And the same for line 808

(issue imported from #M9765)

Actions

Also available in: Atom PDF