[horde] error when communicating with the mail server after upgrade

Andreas Mauser andreas at mauser.info
Thu Apr 30 19:59:02 UTC 2015


----- Nachricht von Robert Schetterer <rs at sys4.de> ---------
   Datum: Thu, 30 Apr 2015 21:39:18 +0200
     Von: Robert Schetterer <rs at sys4.de>
Betreff: Re: [horde] error when communicating with the mail server  
after upgrade
      An: horde at lists.horde.org


> Am 30.04.2015 um 19:45 schrieb Michael M Slusarz:
>> Quoting Andrew Watkins <andrew at dcs.bbk.ac.uk>:
>>
>>> On 04/30/15 13:38, Andrew Watkins wrote:
>>>> On 04/29/15 20:35, Arjen de Korte wrote:
>>>>> Citeren Andrew Watkins <andrew at dcs.bbk.ac.uk>:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Just wondered if any one else is seeing this error. I just upgraded
>>>>>> to webmail 5.2.6 from 5.2.4 and get a "error when communicating
>>>>>> with the mail server" when I reading the e-mails.
>>>>>>
>>>>>> - can log into horde webmail
>>>>>> - webmail displays the number of e-mails in inbox (Total = x)
>>>>>> - when I go to list the e-mails nothing appears and "error when
>>>>>> communicating with the mail server"
>>>>>>
>>>>>> I have upgraded a few times before with no problems.
>>>>>>
>>>>>> cat imp/config/backends.local.php
>>>>>> $servers['imap'] = array(
>>>>>>    // Disabled by default
>>>>>>    'disabled' => false,
>>>>>>    'name' => 'IMAP Server',
>>>>>>    'hostspec' => 'imap.dcs.bbk.ac.uk',
>>>>>>    'hordeauth' => true,
>>>>>>    'protocol' => 'imap',
>>>>>>    'port' => 143,
>>>>>>    'secure' => 'false',
>>>>>>    'maildomain' => 'dcs.bbk.ac.uk',
>>>>>>    'smtphost' => 'smtp.dcs.bbk.ac.uk',
>>>>>>    'smtpport' => 25,
>>>>>>    'acl' => false,
>>>>>>    'cache' => false,
>>>>>>    'capability_ignore' => array('ESEARCH'),
>>>>>>    'imap_config' => array(
>>>>>>        'children' => false,
>>>>>>        'namespace' => array(
>>>>>>        ),
>>>>>>        'search_charset' => array(
>>>>>>            'UTF-8' => true
>>>>>>        )
>>>>>>    )
>>>>>> );
>>>>>
>>>>> The above backends.local.php is invalid. Do *not* define an array in
>>>>> backends.local.php, but only override values that need changing from
>>>>> the defaults provided in backends.php that is provided with the
>>>>> version you're upgrading to. The correct format is in the header and
>>>>> looks like
>>>>>
>>>>>   <?php
>>>>>   $servers['imap']['hostspec'] = 'imap.example.com';
>>>>>
>>>>> It also looks like you have missed quite a few changes in the IMP
>>>>> configuration over time (and possibly other applications too).
>>>>> Support for the 'smtphost' and 'smtpport' for instance was removed
>>>>> with the IMP upgrade from 5.x to 6.x, so this won't work anymore.
>>>>> Please have a look at
>>>>>
>>>>>   http://www.horde.org/apps/imp/docs/UPGRADING
>>>>>
>>>>> for a list of changes. It is worth looking into this *before*
>>>>> upgrading.
>>>>>
>>>> I have update my backends.local.php:
>>>>
>>>> $servers['imap']['name'] = 'IMAP Server';
>>>> $servers['imap']['disabled'] = false;
>>>> $servers['imap']['hostspec'] = 'imap.dcs.bbk.ac.uk';
>>>> $servers['imap']['hordeauth'] = true;
>>>> $servers['imap']['tls'] = 'tls';
>>>> $servers['imap']['maildomain'] = 'dcs.bbk.ac.uk';
>>>> $servers['imap']['smtp'] = array (
>>>>        'horde_auth' => false,
>>>>        'debug' => 'true',
>>>>        'lmtp' => false
>>>> );
>>>> $servers['imap']['acl'] = false;
>>>> $servers['imap']['debug'] = '/tmp/imp.log';
>>>> $servers['advanced']['capability_ignore'] = array('ESEARCH');
>>>>
>>>> but then I notice errors in the web server logs:
>>>>
>>>> PHP Fatal error:  Only variables can be passed by reference in
>>>> /var/php/5.3/pear/Horde/Idna.php on line 42, referer:
>>>> https://webmail.dcs.bbk.ac.uk/webmail/imp/dynamic.php?page=mailbox
>>>>
>>>> which refers to the lines:
>>>>
>>>> case 'INTL_UTS46':
>>>>            return idn_to_ascii($data, 0, INTL_IDNA_VARIANT_UTS46);
>>>>
>>>>
>>>> and then later on it fails to find Class 'Horde_Idna' since the above
>>>> error.
>>>>
>>>> PHP Fatal error:  Class 'Horde_Idna' not found in
>>>> /var/php/5.3/pear/Horde/Mail/Rfc822/Address.php on line 96, referer:
>>>> https://webmail.dcs.bbk.ac.uk/webmail/imp/dynamic.php?page=mailbox
>>>>
>>>> I wonder if it is a compatible problem:
>>>> $ /usr/php/5.3/bin/pecl -V
>>>> PEAR Version: 1.9.5
>>>> PHP Version: 5.3.29
>>>> Zend Engine Version: 2.3.0
>>>> Running on: SunOS webmail-master 5.11 11.2 i86pc
>>>>
>>>> Andrew
>>>>
>>> Look like it is a bug with the "passed by reference", so altered the
>>> code:
>>
>> There's no bug in the code.  You are most likely using the old broken
>> idn PECL extensions rather than the built-in PHP intl version.
>>
>> michael
>>
>> ___________________________________
>> Michael Slusarz [slusarz at horde.org]
>>
>
> by the way ,missing horde_lz4 did gave me a bad upgrade time yesterday
>
> http://lists.horde.org/archives/horde/Week-of-Mon-20140331/051141.html
>
> ...
> pecl upgrade -f horde/horde_lz4
> ...
>
> https://www.linuxmuster.net/wiki/anwenderwiki:webapps:horde:installhorde5ubuntu
>
> ...
> echo "extension=horde_lz4.so" > /etc/php5/apache2/conf.d/lz4.ini
> ...
> service apache2 restart
>
> helped fixing it on ubuntu trusty

Thank you, didnt help on my side.

Do we have the same problem?
[Thu Apr 30 21:55:46.960603 2015] [:error] [pid 10965] [client  
192.168.24.100:52658] PHP Fatal error:  Call to a member function  
getComponents() on a non-object in  
/var/www/html/post/kronolith/lib/Icalendar/Handler/Base.php on line  
76, referer: https://post.mauser.info/imp/dynamic.php?page=mailbox

I get 'Error communicationg to server' when trying to agree on  
someones calender invitation.

Thank you,
Andreas
'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 3871 bytes
Desc: ?ffentlicher PGP-Schl?ssel
URL: <http://lists.horde.org/archives/horde/attachments/20150430/ae238e0c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.horde.org/archives/horde/attachments/20150430/ae238e0c/attachment-0001.bin>


More information about the horde mailing list