1

Topic: excessive roundcube: PHP Deprecated in mail.log

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu Server 22.04.1 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx):  Nginx
- Manage mail accounts with iRedAdmin-Pro?  YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello, I'm implementing a solution with Iredmal for a client, who bought a new Iredadmin-pro license on Monday 16, everything works fine, but something happens with roundcube included in the installer, when a user enters his account, in mail.log many errors appear like this

Jan 17 22:11:40 mail roundcube: PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /opt/www/roundcubemail-1.5.3/program/lib/Roundcube/bootstrap.php on line 329
Jan 17 22:19:29 mail roundcube: PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/www/roundcubemail-1.5.3/program/include/rcmail.php on line 1188
Jan 17 22:19:29 mail roundcube: PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/www/roundcubemail-1.5.3/program/actions/mail/index.php on line 181
Jan 17 22:19:29 mail roundcube: PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /opt/www/roundcubemail-1.5.3/program/include/rcmail_action.php on line 1221
Jan 17 22:19:29 mail roundcube: PHP Deprecated:  Automatic conversion of false to array is deprecated in /opt/www/roundcubemail-1.5.3/program/lib/Roundcube/rcube_imap_generic.php on line 3229
Jan 17 22:19:30 mail roundcube: PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/www/roundcubemail-1.5.3/program/actions/mail/index.php on line 181
Jan 17 22:19:30 mail roundcube: PHP Deprecated:  Automatic conversion of false to array is deprecated in /opt/www/roundcubemail-1.5.3/program/lib/Roundcube/rcube_imap_generic.php on line 3229

this happens on every click inside the roundcube.

I repeated the installation 2 times to rule out installation failures, but the result is the same, even only using iredmail 1.6.2

In our test nothing is wrong, all systems work fine, including roundcube, but I'm worried that when the server goes into production, this amount of roundcube records will interfere when a situation occurs that should be looked for in the log, or even in system performance when those files grow too much. In our test mail.log with 790 lines, 275 are only PHP Deprecated:, this generated only with only one account, the server will keep 500.
This server needs to be online this weekend, there is something that can be done to prevent these logs from being written.
Example move the roudcube log to another file.

I can schedule a cron and script to remove all "PHP Deprecated" lines after log rotation, and before compression, but the client expects a 100% functional server with no handcrafted tricks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: excessive roundcube: PHP Deprecated in mail.log

You can try to upgrade Roundcube to latest 1.6.0 release, but latest git version since it contains many PHP8 compatibility issues, or maybe wait for Roundcube 1.6.1 release or even 1.7.0.