Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-02-15
Due date:
% Done:

0%

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

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

patch (561 Bytes) patch Administrator Admin, 2006-02-15 11:21
dump.html (62.7 KB) dump.html Administrator Admin, 2006-04-10 11:03
Actions #1

Updated by Rupert Germann over 18 years ago

I wasn't able to reproduce this with RC3 (PHP5)
anyone else?

Actions #2

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.

Actions #3

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:

Actions #4

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'];
}
}
...
Actions #6

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.

Actions #7

Updated by Georg Ringer almost 12 years ago

  • Status changed from New to Closed
  • PHP Version deleted (4)

not resolvable

Actions

Also available in: Atom PDF