Project

General

Profile

Actions

Bug #17707

closed

Fatal error: Cannot use string offset as an array in class.tslib_pibase.php on line 217

Added by Malte Jansen about 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2007-10-20
Due date:
% Done:

0%

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

Description

When I have installed the extension "http_errorhandling" I always get the line (see Summary).
I have checked the code but nothing seems to be wrong...

The Bug seems to be related to Bug 0005620. But this Bug is closed...

With debug_print_backtrace() on line 216 I got the following lines...
#0 tslib_pibase->tslib_pibase() called at [\cms\t3lib\class.t3lib_div.php:4027]
#1 t3lib_div::makeInstance(tx_httperrorhandling_pi1) called at [\cms\t3lib\class.t3lib_div.php:3915]
#2 t3lib_div::callUserFunction(EXT:http_errorhandling/pi1/class.tx_httperrorhandling_pi1.php:tx_httperrorhandling_pi1->main, Array (), Array ()) called at [\cms\typo3\sysext\cms\tslib\index_ts.php:207]
#3 require(\cms\typo3\sysext\cms\tslib\index_ts.php) called at [D:\workspace-typo3\franzkuhnertkg\index.php:76]
(issue imported from #M6560)

Actions #1

Updated by Oliver Hader almost 17 years ago

In line 207 of index_ts.php there's the "preBeUser" hook:
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/index_ts.php']['preBeUser']

In line 217 the current language of the page should be fetched:
$this->LLkey = $GLOBALS['TSFE']->config['config']['language'];

The "http_errorhandling" is executed too early - before the TypoScript templates were loaded from cached or parsed. Thus, $GLOBALS['TSFE']->config is still set to an empty string and cannot be used as array (like also the error tells).

This behaviour should be handled by the extension.

Actions #2

Updated by Oliver Hader almost 17 years ago

Bug is located in extension. There's nothing the TYPO3 Core could do...

Actions

Also available in: Atom PDF