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' );

Is you Horde email failing due to file size attachments? Check the php.ini file in horde:

[root@server ~]# grep upload_max_filesize /etc/psa-webmail/horde/horde/php.ini
upload_max_filesize = 5M

Now edit the file:

[root@server ~]# nano /etc/psa-webmail/horde/horde/php.ini
upload_max_filesize = 5M
Change to required value
upload_max_filesize = 128M

Save and exit and restart horde
SERVICE HORDE RESTART

Now check the php config file – php.ini for max_uploads and max_post
grep max_file_uploads /etc/php.ini
max_file_uploads = 99999