[TYPO3-core] RFC #12196: PHP warning in FE with activated DLOG and mbstring set as t3lib_cs_utils
Rupert Germann
rupi at gmx.li
Thu Oct 15 22:31:16 CEST 2009
FYI: committed to trunk rev 6152
greets
rupert
Rupert Germann schrieb:
> Hi,
>
> this is a SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12196
>
> Branches: Trunk
>
> 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
>
> greets
> rupert
>
More information about the TYPO3-team-core
mailing list