Project

General

Profile

Actions

Bug #19589

closed

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

Added by Tania over 15 years ago. Updated over 10 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 #1

Updated by Alexander Opitz almost 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)?

Actions #2

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF