Re: [eCS-ISP] RoundCube webmail 1.4 or 1.5 php issue
Date:
Thu, 25 Jan 2024 19:14:01 -0800
To:
"eCS ISP Mailing List" <ecs-isp@2rosenthals.com>
In <list-9020253@2rosenthals.com>, on 01/25/24
at 02:44 PM, "Massimo S." <ecs-isp@2rosenthals.com> said:
Hi massimo,
>[25-Jan-2024 14:14:06 Europe/Rome] PHP Fatal error: Uncaught Error: Call
>to undefined function mb_regex_encoding() in
>D:\apache\htdocs\webmail\program\lib\Roundcube\bootstrap.php:87 Stack
>trace:
>#0 D:\apache\htdocs\webmail\program\include\iniset.php(74):
>require_once() #1 D:\apache\htdocs\webmail\installer\index.php(43):
>require('D:\\apache\\htdo...') #2 {main}
> thrown in D:\apache\htdocs\webmail\program\lib\Roundcube\bootstrap.php
>on line 87
Your php programmer may be able to patch the roundcube code to work like
it did in prior versions.
Back in 1.3.17, which IIRC is to what you are currenly using, the code
was:
roundcube.git\program\lib\Roundcube\bootstrap.php:79
// set internal encoding for mbstring extension
if (function_exists('mb_internal_encoding')) {
mb_internal_encoding(RCUBE_CHARSET);
}
if (function_exists('mb_regex_encoding')) {
mb_regex_encoding(RCUBE_CHARSET);
}
which made the functions optional. Without these calls, php will use the
default internal encoding. This worked for you in version 1.3.x.
Perhaps, it will continue to work for you in a patched 1.4 or 1.5.