I recently upgraded to 2.7.1 from 2.5.x, and now the Channel Form tag is triggering an “undefined constant MB_ENABLED” PHP error notice.
The following code is enough to reproduce this:
{exp:channel:form channel="my_channel_name"}
Hi!
{/exp:channel:form}And the error message is as follows:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant MB_ENABLED - assumed 'MB_ENABLED'
Filename: libraries/Encrypt.php
Line Number: 367I’ve traced this back to the CI_Utf8 constructor (in /system/codeigniter/system/core/Utf8.php:47), where if the UTF-8 support test fails, the MB_ENABLED constant is never defined. This seems to be a bug.
In my case, this particular test fails:
$CFG->item('charset') == 'UTF-8'The value of $CFG->item(‘charset’) is ‘utf-8’, not ‘UTF-8’. How do I change this?