Project

General

Profile

Actions

Bug #34835

closed

PHP Fatal Error, cannot view pages from Backend

Added by Björn Paulsen over 12 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-03-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I got a PHP fatal error if i want to view a page from the Backend. (Right Mouse Button -> View)


PHP Fatal error: Call to a member function includeLLFile() on a non-object in /var/www/typo3_common/typo3-4.5/typo3_src-4.5.13/typo3/sysext/cms/tslib/class.tslib_adminpanel.php on line 290, referer: https://www.domain.de/typo3/backend.php

To solve this Problem I insert following code:

class.tslib_adminpanel.php:289


public function display() {
+ if(empty($GLOBALS['LANG']))
+ $GLOBALS['LANG'] = t3lib_div::makeInstance('language');
$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_tsfe.php');
$moduleContent = '';

class.tslib_adminpanel.php:823


protected function extGetLL($key) {
$labelStr = htmlspecialchars($GLOBALS['LANG']->getLL($key)); // Label string in the default backend output charset.
// Convert to utf-8, then to entities:
if ($GLOBALS['LANG']->charSet != 'utf-8') {
+ if(!isset($GLOBALS['LANG']->csConfObj) || !is_object($GLOBALS['LANG']->csConfObj)) {
+ $GLOBALS['LANG']->csConvObj = t3lib_div::makeInstance('t3lib_cs');
+ }
$labelStr = $GLOBALS['LANG']->csConvObj->utf8_encode($labelStr,$GLOBALS['LANG']->charSet);
}
$labelStr = $GLOBALS['LANG']->csConvObj->utf8_to_entities($labelStr);
// Return the result:
return $labelStr;
}

class.t3lib_div.php:4843


$LOCAL_LANG = NULL;
if (@is_file($fileRef) && $langKey) {
+ if(!isset($csConfObj) || !is_object($csConfObj)) {
+ $csConvObj = t3lib_div::makeInstance('t3lib_cs');
+ }
// Set charset:
if ($charset) {

Actions

Also available in: Atom PDF