From: "Lewis G Rosenthal" Received: from [50.73.8.217] (account lgrosenthal@2rosenthals.com HELO [192.168.200.20]) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTPSA id 9020917 for ecs-isp@2rosenthals.com; Thu, 25 Jan 2024 16:59:01 -0500 Subject: Re: [eCS-ISP] RoundCube webmail 1.4 or 1.5 php issue To: eCS ISP Mailing List References: Organization: Rosenthal & Rosenthal, LLC Message-ID: <65B2D9A3.7010401@2rosenthals.com> Date: Thu, 25 Jan 2024 16:58:59 -0500 User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 01/25/24 08:44 am, Massimo S. wrote: > Hi all, > > i need to upgrade RC webmail from 1.3.17 LTS to 1.4.14 or better 1.5.6. > > Env: > Server Version: Apache/2.4.57 (OS/2) OpenSSL/1.1.1l PHP/7.4.32 > Server Built: Apr 8 2023 07:51:12 > > The php webmail fail at boot with this error: > > [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 > Setting aside what php.ini says, what does phpinfo(); say about the configuration and loaded modules? First, check that mbstring is indeed loaded. Then look back up at the top of the page. Under my php 7.4.32 Configure Command (3rd category down, in the top section), I see: --disable-mbregex which effectively disables mbstring's regex component. See: https://www.php.net/manual/en/migration74.other-changes.php My guess is that we do not (yet) have libonig available, necessary for mbregex functions, which is why Paul built with mbregex disabled (just a WAG; Paul, please correct me if I am looking in the wrong place). Perhaps there's a way to disable mbregex calls in RC, assuming you don't really need them? -- Lewis ------------------------------------------------------------- Lewis G Rosenthal, CNA, CLP, CLE, CWTS, EA Rosenthal & Rosenthal, LLC www.2rosenthals.com visit my IT blog www.2rosenthals.net/wordpress -------------------------------------------------------------