Roundcube Community Forum

 

roundcube uses deprecated PEARL version from old install

Started by pimmelberger, June 23, 2024, 04:45:04 AM

Previous topic - Next topic

pimmelberger

Hey,

My debian 11 is using roundcube 1.6.6 and I upgraded from PHP 7.4 to PHP 8.3 yesterday and everything seemed to go well.
Today I was reviewing my logs and found two errors that happened in the night while cleaning up and backing up the roundcube database.

PHP Deprecated:  Calling get_class() without arguments is deprecated in /opt/www/roundcubemail-1.5.2/vendor/pear/pear-core-minimal/src/PEAR.php on line 235

PHP Deprecated:  Calling get_class() without arguments is deprecated in /opt/www/roundcubemail-1.5.2/vendor/pear/pear-core-minimal/src/PEAR.php on line 235

I found some infos about this on https://github.com/roundcube/roundcubemail/issues/9319. I also get what the problem is. I replaced the PHP.php with the current version from https://github.com/pear/pear-core-minimal/blob/master/src/PEAR.php. I diffed my old version with this one and it seems that they changed the get_class() to __CLASS__ as my error messages from tonight are complaining about. We'll see if the error occurs again this night while writing backups of the roundcube db.

But why is roundcube calling the PEAR.php from /opt/www/roundcubemail-1.5.2/ ? I do have a /opt/www/roundcubemail-1.6.6/ folder with the exact same (deprecated) PEARL.php? Did I mix up something at upgrading my roundcube all the time since I startet with 1.5.2 back in the days? And how do I upgrade PEARL to the current version and make roundcube use the right one?