• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Upgrade to PHP 5.3 causes deprecated errors in PSA-Horde

petroski2409

New Pleskian
Hello,

Parallel Plesk Panel 9.5.4 on Cent OS 5.5 64bit

Upgraded my server from PHP.5.1x/mySQL 5.0x to PHP 5.3x/mySQL 5.1.x using Atomic Channel as described at

http://www.atomicorp.com/wiki/index.php/PHP

I had originally intended to just upgrade to PHP 5.2/mySQL 5.1 but found that Atomic had revamped the Wiki to upgrade to PHP 5.3 so I assumed that it was good to go ... (yup, that assume word)

Followed Atomic Wiki directions for both PHP and mySQL upgrades and did system reboot after finished updates. Then went to Plesk panel and applied available new updates for Plesk 9.5.4, one of which was the updates for PHP 5.3 compatibility.

In all, the upgrade went well except for Horde. When I sign into Horde, it seems that the Calendar (Kronolith) has lost functionality in that it doesn't show the actual calendar matrix. In reviewing the /var/log/httpd/error_log file, as soon as I bring up the Horde login page and log in, etc. the log fills with REAMS of PHP Deprecated errors as the example that follows:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[Mon Jul 18 10:47:23 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-horde/lib/Horde/Perms.php on line 455, referer: http://webmail.domainname.tld/kronolith/
[Mon Jul 18 10:47:23 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-horde/lib/Horde/Perms.php on line 462, referer: http://webmail.domainname.tld/kronolith/
[Mon Jul 18 10:49:12 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-pear/PEAR.php on line 563, referer: http://webmail.domainname.tld/services/portal/sidebar.php
[Mon Jul 18 10:49:12 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-pear/PEAR.php on line 566, referer: http://webmail.domainname.tld/services/portal/sidebar.php
[Mon Jul 18 10:49:12 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-pear/Log.php on line 147, referer: http://webmail.domainname.tld/services/portal/sidebar.php
[Mon Jul 18 10:49:12 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-horde/lib/Horde/Notification.php on line 64, referer: http://webmail.domainname.tld/services/portal/sidebar.php
[Mon Jul 18 10:49:12 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-horde/lib/Horde/Perms.php on line 455, referer: http://webmail.domainname.tld/services/portal/sidebar.php
[Mon Jul 18 10:49:12 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-horde/lib/Horde/Perms.php on line 462, referer: http://webmail.domainname.tld/services/portal/sidebar.php
[Mon Jul 18 10:49:13 2011] [error] [client xxx.xxx.xxx.xxx] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/psa-pear/PEAR.php on line 563, referer: http://webmail.domainname.tld/services/portal/sidebar.php

ect, etc, etc, ...

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

It seems like there are incompatibilities with PHP 5.3 and PSA-Horde, does anyone know of any workarounds or available patches for PSA-Horde to rectify this?

Thanks,
Peter
 
You can safely ignore any PHP Deprecated items in log files.

[edit]
Also if you see the warnings on the UI pages you can stop those from showing by editing php.ini and changing error_reporting

error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR ^ E_DEPRECATED
 
Back
Top