Bug #17707
closedFatal error: Cannot use string offset as an array in class.tslib_pibase.php on line 217
0%
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)
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.
Updated by Oliver Hader almost 17 years ago
Bug is located in extension. There's nothing the TYPO3 Core could do...