1

Topic: Roundcube spamming mail.log with php deprecated messages

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version 1.62
- Deployed with downloadable installer
- Ubuntu Server 22.04
- Store mail accounts in MySQL
- Web server Nginx
- Manage mail accounts with iRedAdmin
- Roundcube 1.5.3
====

Hi. I'm new to iredmail mailserver and everything runs fine. But my mail.log shows a lot of php related error messages (one per minute):

Jan 26 23:57:54 mail roundcube: PHP Deprecated:  Return type of zipdownload_mbox_filter::filter($in, $out, &$consumed, $closing) should either be compatible with php_user_filter::filter($in, $out, &$consumed, bool $closing): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /opt/www/roundcubemail-1.5.3/plugins/zipdownload/zipdownload.php on line 405

Is there a fix/workaround?

regards,
exo

----

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

2

Re: Roundcube spamming mail.log with php deprecated messages

exordium wrote:

But my mail.log shows a lot of php related error messages (one per minute)

This is not an error message, this is just a notice and does not affect anything (yet)

22.04 uses php8.1, but RC 1.5.3 is not optimized and uses code which went deprecated from 7.x -> 8.x


https://github.com/roundcube/roundcubem … on-History

Version 1.5
Initial release: 18 October 2021
PHP support: >=5.5 <=8.0

Version 1.6
Initial release: 28 July 2022
PHP support: >=7.3 <=8.1

Either you downgrade PHP, or you upgrade roundcube (or you just leave it as it is since the above are just informations and no errors)

3

Re: Roundcube spamming mail.log with php deprecated messages

Cthulhu wrote:

Either you downgrade PHP, or you upgrade roundcube (or you just leave it as it is since the above are just informations and no errors)

OK. I dont want to break anything within the installation.
Is it possible to supress the notifications or reduce the amount?

regards,
exo

4

Re: Roundcube spamming mail.log with php deprecated messages

exordium wrote:

Is it possible to supress the notifications or reduce the amount?

I suggest upgrade Roundcube to latest 1.6.1 version which fixes many PHP8 compatibility issues.

Please read the release notes and be careful to upgrade with the `installto.sh` script:
https://github.com/roundcube/roundcubem … /tag/1.6.1

5 (edited by ityesit 2023-02-04 05:27:51)

Re: Roundcube spamming mail.log with php deprecated messages

Hi,

exordium wrote:

Is it possible to supress the notifications or reduce the amount?

I'am change this file: /opt/www/roundcubemail/program/lib/Roundcube/bootstrap.php in linie 30

From:

'error_reporting' => E_ALL & ~E_NOTICE & ~E_STRICT,

To:

'error_reporting' => E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_STRICT,

ZhangHuangbin wrote:

I suggest upgrade Roundcube to latest 1.6.1 version which fixes many PHP8 compatibility issues.

I tried, but when I started www webmail it asked me to enter server.
I couldn't find where to set the default server "lochalhost".

resolved (cache?): /etc/init.d/php8.1-fpm restart  smile