Roundcube Community Forum

Release Support => Pending Issues => Topic started by: massimo2022 on January 13, 2026, 03:24:30 PM

Title: Upgrade from 1.4.15 LTS to 1.5.12 LTS get Php fatal error Uncaught IntlException
Post by: massimo2022 on January 13, 2026, 03:24:30 PM
Hi all,

PHP 7.4.32

after upgrading from 1.4.15 LTS to 1.5.12 LTS i get this on some emails (not all), the error show opening emails  with "simple" content eg. the ones with text and one or 2 lines as body eg. the test email from the Roundcube installer.

Details:

[13-Jan-2026 21:02:08 Europe/Rome] PHP Fatal error:  Uncaught IntlException: fopen(rcmail_string_replacer.php): failed to open stream: Bad file number in D:\apache\htdocs\webmail\program\lib\Roundcube\bootstrap.php:443
Stack trace:
#0 D:\apache\htdocs\webmail\program\lib\Roundcube\bootstrap.php(443): fopen('rcmail_string_r...', 'r', true)
#1 [internal function]: rcube_autoload('rcmail_string_r...')
#2 D:\apache\htdocs\webmail\program\lib\Roundcube\rcube_text2html.php(145): spl_autoload_call('rcmail_string_r...')
#3 D:\apache\htdocs\webmail\program\lib\Roundcube\rcube_text2html.php(130): rcube_text2html->_converter(NULL)
#4 D:\apache\htdocs\webmail\program\lib\Roundcube\rcube_text2html.php(110): rcube_text2html->_convert()
#5 D:\apache\htdocs\webmail\program\actions\mail\index.php(1102): rcube_text2html->get_html()
#6 D:\apache\htdocs\webmail\program\actions\mail\show.php(742): rcmail_action_mail_index::plain_body(NULL)
#7 D:\apache\htdocs\webmail\program\include\rcmail_output_html.php(1484): rcmail_action_ in D:\apache\htdocs\webmail\program\lib\Roundcube\bootstrap.php on line 443


I also had the issue oops, internal error and i had to copy jquery.ui.datepicker-it.js to jquery.ui.datepicker-it.min.js under \plugins\jq... to fix this.

Of course i've not found any info/fix about the "bad file number" issue.

Eg. The content of one of the emails that show the issue:

"

MIME-Version: 1.0
From: [email protected]
To: [email protected]
Subject: Test message from Roundcube
Message-ID: <0066020880.00006X6I@srv2>
Date: Tue, 13 Jan 2026 18:20:20 -0000
X-Date-Added: Date header was added by srv2


This is a test to confirm that Roundcube can send email.

"


thanks for any help

massimo
Title: Re: Upgrade from 1.4.15 LTS to 1.5.12 LTS get Php fatal error Uncaught IntlException
Post by: JohnDoh on January 14, 2026, 11:37:46 AM
assuming the upgrade went smoothly and the file is present in program\lib\Roundcube\ have you checked the permissions?
Title: Re: Upgrade from 1.4.15 LTS to 1.5.12 LTS get Php fatal error Uncaught IntlException
Post by: alec on January 14, 2026, 12:11:08 PM
Sounds like PHP issue. How about restarting Apache. https://github.com/roundcube/roundcubemail/issues/8544
Title: Re: Upgrade from 1.4.15 LTS to 1.5.12 LTS get Php fatal error Uncaught IntlException
Post by: massimo2022 on January 15, 2026, 05:55:50 AM
All files are in the right places (dirs).
All the permissions are set.

Could it be something path related?
The OS has DOS paths eg. D:\mydirectory etc..

massimo
Title: Re: Upgrade from 1.4.15 LTS to 1.5.12 LTS get Php fatal error Uncaught IntlException
Post by: massimo2022 on January 15, 2026, 05:56:36 AM
No, it's impossible, i've restared apache a number of times..
I also rebooted the VM..

thanks

massimo
Title: Re: Upgrade from 1.4.15 LTS to 1.5.12 LTS get Php fatal error Uncaught IntlException
Post by: JohnDoh on January 16, 2026, 02:45:10 PM
Did you translate the error into English? I know that sounds like a strange question but "Bad file number" is a strange message to me and that line only does 1 thing, open a file in read only mode. I don't think its an issue with the include path because you said it only happens for some emails. Cam you write a test script and confirm you can open the same file?
Title: Re: Upgrade from 1.4.15 LTS to 1.5.12 LTS get Php fatal error Uncaught IntlException
Post by: massimo2022 on January 16, 2026, 03:00:31 PM
I also tried to update PHP from 7.4.32 to 8.1.31, but the situation worsened,
1.3.17 crash after login, 1.5.12 crash at the main page..
So i fall back to PHP 7.4.32 and i've let my PHP coder to fix the issue.

He succeded, he say, avoiding the use of INTL php library for text emails.
And he also said that 1.5.12 uses a lot INTL php library, so maybe 7.4.32 is no good for it.

Now it works, but i don't know exactly the modifies.