1

Topic: Bug Fix for Roundcube

==== Required information ====
- iRedMail version: 0.9.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Debian 8.1
- Related log if you're reporting an issue:
====

Hey everyone! I just wanted to share a bug fix that I discovered tonight. I've been getting a lot of complaining in my logs about php-pear errors when users on my server use Roundcube to check / send mail. The error is something like:

Jun 18 21:57:17 mail roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /opt/www/roundcubemail-1.1.1/vendor/pear/net_smtp/Net/SMTP.php on line 495

There is a git repository with a patch for this error, specifically. The patched files are available here: http://trac.roundcube.net/changeset/b59b72cc302/github

The files can be manually replaced, and the error will disappear afterward. I tested this on my machine, and it doesn't seem to cause any new bugs. The error is gone, to boot. As always, before replacing any files, you should back up your current Roundcube installation, just in case. If you're like me, and getting the error, this will fix the problem, and Roundcube won't blow up /var/log/mail.log with php PEAR errors.

Just wanted to share! smile

----

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

2

Re: Bug Fix for Roundcube

According to Roundcube commit log, this fix is available in Roundcube-1.1.2:
https://github.com/roundcube/roundcubem … /CHANGELOG

So, if you don't want to apply the patch manually, it's ok to upgrade Roundcube to 1.1.2 to fix this issue.

3

Re: Bug Fix for Roundcube

I didn't realize there was a new version of Roundcube, Zhang! Guess I'll be updating to the new version! Thanks for letting me know!