Actions
Bug #21243
closedPHP warning in FE with activated DLOG and mbstring set as t3lib_cs_utils
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
Actions