Horde not working after PHP 5.4.33 update

Horde not working after PHP 5.4.33 update
Article ID: 123027, created on Sep 29, 2014, last review on Dec 7, 2014
APPLIES TO:
Parallels Plesk 12.0 for Linux
Parallels Plesk 11.5 for Linux
Symptoms
Horde webmail is not working after the PHP 5.4.33 update:
The login process is slow
Emails are not displayed and sometimes login fails with the error: “Mail server closed the connection unexpectedly”
Once logged in and clicking the “Email” link, the page does not load. Instead, after a long delay, users are sent back to the login screen with an error message. The web server’s error_log file contains:
Call to a member function getUid() on a non-object in /usr/share/psa-pear/pear/php/Horde/Imap/Client/Socket.php on line 1506
Cause
The root cause of this issue is a PHP bug: https://bugs.php.net/bug.php?id=41631
The affected PHP version is built by Atomic and installed from this repository. PHP builds from other repositories could also be affected.
Resolution
You can use one of the following methods to work around the issue:
Downgrade to PHP 5.4.32
yum downgrade $(rpm -qa –qf “%{NAME}\n” | grep -v ioncube | grep ^php | awk ‘{print $1″-5.4.32″}’) -y
Temporarily change the IMAP configuration in Horde webmail:
Edit ‘/usr/share/psa-horde/imp/config/backends.php’
Change ‘secure’ => ‘tls’ to ‘secure’ => ‘none’ (see below):
// IMAP server
$servers[‘imap’] = array(
// ENABLED by default; will connect to IMAP port on local server
‘disabled’ => false,
‘name’ => ‘IMAP Server’,
‘hostspec’ => ‘localhost’,
‘hordeauth’ => false,
‘protocol’ => ‘imap’,
‘port’ => 143,
// Plaintext logins are disabled by default on IMAP servers (see RFC 3501
// [6.2.3]), so TLS is the only guaranteed authentication available by
// default.
‘secure’ => ‘none’, // <------ this one was changed from 'tls' to 'none' );

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.