Project

General

Profile

Actions

Bug #21243

closed

PHP warning in FE with activated DLOG and mbstring set as t3lib_cs_utils

Added by Rupert Germann over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2009-10-11
Due date:
% Done:

0%

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

Description

Problem:
with the following settings PHP shows a warning when viewing pages in FE:

$TYPO3_CONF_VARS['SYS']['enable_DLOG'] = 1;
$TYPO3_CONF_VARS['SYS']['t3lib_cs_utils'] = 'mbstring';

PHP Warning: mb_substr() [<a href='function.mb-substr'>function.mb-substr</a>]: Unknown encoding "" in /srv/SVN/forge.typo3.org/Core/trunk/t3lib/class.t3lib_cs.php line 1481

This is caused by function t3lib_div::arrayToLogString() which calls t3lib_div::fixed_lgd_cs at a point where no renderCharset has been set in TSFE yet.

Solution:
use $GLOBALS['TSFE']->defaultCharSet if $GLOBALS['TSFE']->renderCharset is empty

(issue imported from #M12196)


Files

12196.diff (825 Bytes) 12196.diff Administrator Admin, 2009-10-11 21:53
Actions #1

Updated by Rupert Germann over 14 years ago

FYI: committed to trunk rev 6152

Actions

Also available in: Atom PDF