Bug #19589
closedCannot use string offset as an array in function tslib_pibase()
0%
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)
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.