Horde not working after PHP 5.4.33 update


2016-11-16 12:50:38 UTC


2017-08-16 16:23:12 UTC


Was this article helpful?

Have more questions?

Submit a request

Horde not working after PHP 5.4.33 update

Applicable to:

  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux


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


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.


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}\

    " | grep -v ioncube | grep ^php | awk '{print $1"-5.4.32"}') -y

  • Temporarily change the IMAP configuration in Horde webmail:

    1. Edit ' /usr/share/psa-horde/imp/config/backends.php '
    2. 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'
Have more questions? Submit a request
Please sign in to leave a comment.