Bug #15624
closed
FE-Admin-Panel causes Typo3 crash while logged into backend (if editing-Section opened)
Added by Stephan Struckmann almost 19 years ago.
Updated almost 12 years ago.
Description
'object not found' in class.t3lib_tsfebeuserauth.php (>getLL):
In line:
$labelStr = $GLOBALS[LANG]>csConvObj->utf8_encode($labelStr,$GLOBALS['LANG']->charSet);
After fixing this by makeInstance('t3lib_cs'); all lang-labels are missing, if edtubg-section is opened. includeLLFile(EXT:lang/locallang_tsfe.php) fixes this.
Probably under some circumstances LANG is not initialized completely. I'll send a work around although I think, it shoud be examined closer, why that initializiation fails at that point.
I had a short look into CVS and couldn't find, if that bug is still not solved. At least I found no change in the getLL function.
I use typo3 under Debian testing (sid) with Apache 1.3.33, MySql 5.0.18 and PHP 4.4.2.
(issue imported from #M2564)
Files
I wasn't able to reproduce this with RC3 (PHP5)
anyone else?
Either format the dump as text or add it as attachment. The thing is - surprise - not readable as it is now.
Sorry -- friday evening, probably I had been mentally in my weekend. The dump as file is attached, the original note is deleted.
--- on friday I wrote:
I still get the error reproducable with 4.0. A stack dump with t3lib_div::debug(debug_backtrace()); says:
see file class.t3lib_basicfilefunc.php
It seems like this code sequence would be needed also here. Shouldn't this be put into a common function and which one?
----------------------
function cleanFileName($fileName,$charset='') {
if (!is_object($this->csConvObj)) {
if (TYPO3_MODE=='FE') {
$this->csConvObj = &$GLOBALS['TSFE']->csConvObj;
} elseif (is_object($GLOBALS['LANG'])) { // BE assumed:
$this->csConvObj = &$GLOBALS['LANG']->csConvObj;
} else { // The object may not exist yet, so we need to create it now. Happens in the Install Tool for example.
$this->csConvObj = &t3lib_div::makeInstance('t3lib_cs');
}
}
if (!$charset) {
if (TYPO3_MODE=='FE') {
$charset = $GLOBALS['TSFE']->renderCharset;
} elseif (is_object($GLOBALS['LANG'])) { // BE assumed:
$charset = $GLOBALS['LANG']->charSet;
} else { // best guess
$charset = $GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset'];
}
}
...
- Target version deleted (
0)
Is this still occurring? I do not get here with trunk (4.6-dev) anymore.
- Status changed from New to Closed
- PHP Version deleted (
4)
Also available in: Atom
PDF