#21243PHP warning in FE with activated DLOG and mbstring set as t3lib_cs_utils
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() [function.mb-substr]: 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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.