Bug #15624
closedFE-Admin-Panel causes Typo3 crash while logged into backend (if editing-Section opened)
0%
Description
'object not found' in class.t3lib_tsfebeuserauth.php (>getLL):>csConvObj->utf8_encode($labelStr,$GLOBALS['LANG']->charSet);
In line:
$labelStr = $GLOBALS[LANG]
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
Updated by Rupert Germann over 18 years ago
I wasn't able to reproduce this with RC3 (PHP5)
anyone else?
Updated by Martin Kutschker over 18 years ago
Either format the dump as text or add it as attachment. The thing is - surprise - not readable as it is now.
Updated by Stephan Struckmann over 18 years ago
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:
Updated by Franz Holzinger about 18 years ago
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'];
}
}
...
Updated by Martin Holtz about 18 years ago
Updated by Björn Pedersen about 13 years ago
- Target version deleted (
0)
Is this still occurring? I do not get here with trunk (4.6-dev) anymore.
Updated by Georg Ringer almost 12 years ago
- Status changed from New to Closed
- PHP Version deleted (
4)
not resolvable