1

Topic: roundcube deprecated error in syslog

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 22.04 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.
====

Nov  1 14:50:30 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/rcube_mime.php on line 323
Nov  1 14:50:30 mail roundcube: message repeated 3 times: [ 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/rcube_mime.php on line 323]
Nov  1 14:50:35 mail roundcube: PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/www/roundcubemail-1.5.3/program/lib/Roundcube/rcube_imap.php on line 1916
Nov  1 14:50:35 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
Nov  1 14:50:35 mail roundcube: message repeated 4 times: [ 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]
Nov  1 14:50:35 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/rcube_mime.php on line 323
Nov  1 14:50:35 mail roundcube: message repeated 3 times: [ 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/rcube_mime.php on line 323]

Hello, i disabled DEPRECATED into php/fpm error_reporting conf, but they are still logged *annoying*

May be it's stuck in some roundcube file ? How to definitely disable them ?

thanks

sl

----

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

2

Re: roundcube deprecated error in syslog

i guess rcm sets the value for error reporting by itself, since this value is not hardcoded and can be changed anytime during runtime

3

Re: roundcube deprecated error in syslog

You may want to try the latest Roundcube development edition, it contains many PHP8 related issues.