[TYPO3-core] RFC #12196: PHP warning in FE with activated DLOG and mbstring set as t3lib_cs_utils
Christian Kuhn
lolli at schwarzbu.ch
Mon Oct 12 22:00:20 CEST 2009
Hey,
+1 on reading and testing.
Thanks
Christian
Rupert Germann wrote:
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12196
>
> 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
More information about the TYPO3-team-core
mailing list