[horde] Hit reply to all gives Cannot use object of type Horde_Mime_Headers as array

Michael J Rubinsky mrubinsk at horde.org
Thu Oct 22 04:24:59 UTC 2015


Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:

> Quoting Michael J Rubinsky <mrubinsk at horde.org>:
>
>> Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>
>>> Quoting Michael J Rubinsky <mrubinsk at horde.org>:
>>>
>>>> Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>>>
>>>>> Quoting Michael J Rubinsky <mrubinsk at horde.org>:
>>>>>
>>>>>> Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>>>>>
>>>>>>> Quoting Michael J Rubinsky <mrubinsk at horde.org>:
>>>>>>>
>>>>>>>> Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>>>>>>>
>>>>>>>>> Hello Horde mail list,
>>>>>>>>>
>>>>>>>>> upon clicking "Reply to all" to reply to a maillist email, I was
>>>>>>>>> greeted by
>>>>>>>>> my horde framework with the following error:
>>>>>>>>>
>>>>>>>>> A FATAL ERROR HAS OCCURRED
>>>>>>>>>
>>>>>>>>> CANNOT USE OBJECT OF TYPE HORDE_MIME_HEADERS AS ARRAY
>>>>>>>>>
>>>>>>>>> 1. Horde_ErrorHandler::catchFatalError()
>>>>>>>>>
>>>>>>>>> DETAILS
>>>>>>>>>
>>>>>>>>> The Full Error Message Is Logged In Horde's Log File, And Is Shown
>>>>>>>>> Below
>>>>>>>>> Only To Administrators. Non-administrative Users Will Not See
> Error
>>>>>>>>> Details.
>>>>>>>>>
>>>>>>>>> ErrorException Object (     [message:protected] => Cannot use
>>>>>
>>>>> object
>>>>>>> of
>>>>>>>>> type Horde_Mime_Headers as array     [string:Exception:private]
>>>
>>> =>
>>>>>>>>> [code:protected] => 0     [file:protected] =>
>>>>>>>>> /var/www/html/horde/imp/lib/Compose.php     [line:protected] =>
>>>>>
>>>>> 1882
>>>>>>>>> [trace:Exception:private] => Array         (           
>>>>>
>>>>>  [0]
>>>>>>> => Array
>>>>>>>>>          (                     [function] =>
>>>>>>>
>>>>>>> catchFatalError
>>>>>>>>>      [class] => Horde_ErrorHandler                   
>>>>>>>
>>>>>>>  [type] => ::
>>>>>>>>>             [args] => Array                     
>  
>>>>>
>>>>>  (
>>>>>>>>>   )                  )          )     
>>>>>>>
>>>>>>> [previous:Exception:private] =>
>>>>>>>>> [severity:protected] => 1     [logged] => 1 )
>>>>>>>>> What is it exactly and what does it means?
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Louis-Philippe Allard
>>>>>>>>> lp.allard.1 at gmail.com
>>>>>>>>> Sent from Horde Groupware - GNU/Linux
>>>>>>>>> --
>>>>>>>>> Horde mailing list
>>>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>>>>
>>>>>>>> What version of Horde/IMP? PEAR or Git?
>>>>>>>>
>>>>>>>> --
>>>>>>>> mike
>>>>>>>> The Horde Project
>>>>>>>> http://www.horde.org
>>>
>>>
> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject
>>>>>>> Hello Michael, sorry for not providing the details of the config. 
>>>>>>>
>>>>>>> Horde is running on a Centos 7 VM (updated to latest), with the
>>>>>
>>>>> following
>>>>>>> application versions:
>>>>>>>
>>>>>>> Horde Groupware Webmail Edition 5.2.7
>>>>>>> Mail (imp) 6.2.9
>>>>>>>
>>>>>>> [root at centos-horde ~]# pear -V
>>>>>>> PEAR Version: 1.9.5
>>>>>>> PHP Version: 5.4.16
>>>>>>> Zend Engine Version: 2.4.0
>>>>>>> Running on: Linux centos-horde 3.10.0-229.11.1.el7.x86_64 #1 SMP Thu
>>>>>>> Aug 6
>>>>>>> 01:06:18 UTC 2015 x86_64
>>>>>>>
>>>>>>> [root at centos-horde ~]# git --version
>>>>>>> git version 1.8.3.1
>>>>>>>
>>>>>>> This function used to work, or at least last time I used it about a
>>>
>>> few
>>>>>>> months ago (I rarely use reply to all..)
>>>>>>>
>>>>>>> If you need anything let me know!
>>>>>>
>>>>>> This works for me locally. I kind of remember some issue with
>>>
>>> Horde_Mime
>>>>>> a version or two back that was corrected. Please try updating at
> least
>>>>>> Horde_Mime to see if this helps.
>>>>>>
>>>>>> --
>>>>>> mike
>>>>>> The Horde Project
>>>>>> http://www.horde.org
>>>
>>>
> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject
>>>>> Hello Mike,  I have attempted to upgrade Horde via pear (pear upgrade
>>>
>>> -a
>>>>> -B horde/webmail) and then proceeded to go to the Admin page and
> update
>>>>> the
>>>>> DB schemas and configs.  No problem at all.  Then I tried to reply
> to
>>>
>>> all
>>>>> only to get the same error.  I did notice however that the upgrade
>>>
>>> missed
>>>>> lots of sub applications.
>>>>>
>>>>> If I go in Config and click "Check for newer versions" only 23 out of
>>>
>>> 117
>>>>> are marked as upgraded.... Everything else says "A newer version
>>>>> (X.X.X)
>>>>> exists."
>>>>>
>>>>> Horde_Mime_*** is part of those that did not update...
>>>>>
>>>>> How and should I force upgrading everything???
>>>>>
>>>>> Additionally, when I tried to reply to all, my server output this
> error
>>>>> in
>>>>> the terminal:
>>>>>
>>>>> Message from syslogd at centos-horde at Oct 21 17:17:52 ...
>>>>>  HORDE:[imp] Cannot use object of type Horde_Mime_Headers as array
> [pid
>>>>> 18102 on line 1890 of "/var/www/html/horde/imp/lib/Compose.php"]
>>>>>
>>>>> Looking forward to your reply!
>>>>
>>>> Try upgrading horde/Horde_Mime directly.
>>>>
>>>> --
>>>> mike
>>>> The Horde Project
>>>> http://www.horde.org
>>>>
> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject
>>>
>>> [root at centos-horde config]# pear upgrade -a -B horde/Horde_Mime
>>> Nothing to upgrade
>>>
>>> :(
>>>
>>> Additionally, the question about upgrading everything still remains: 
> How
>>> to upgrade the whole works?
>>
>> Your original command *should* have worked.
>>
>> --
>> mike
>> The Horde Project
>> http://www.horde.org
>> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject
>
> OK I got further this time but didnt find the solution. 
>
> It appears that the command "pear upgrade -a -B horde/webmail" indeed
> upgraded everything.  After having cleared pear's cache and reissued a
> pear upgrade command, I tried manually upgrading Horde_Mime and I got
>
> [root at centos-horde ~]# pear upgrade horde/Horde_Mime
> Nothing to upgrade
>
> Trying to "install" it led to:
>
> [root at centos-horde ~]# pear install horde/Horde_Mime
> horde/Horde_Mime is already installed and is the same as the released
> version 2.9.2
> install failed
>
> Meanwhile the config webpage still lists the apps are outdated (A newer
> version (2.9.2) exists).  I conclude there is a bug in the webpage that
> prevents it from seeing that the latest versions of the applications are
> installed.
>
> Also this doesnt help with the Fatal error I still get with Reply to all...

Looking at the code for Horde_Mime_Headers - it absolutely does  
implement ArrayAccess - therefore CAN be accessed as an array. It has  
been like that for at least a year. My guess (especially considering  
the other issues you are seeing with PEAR) is that you might have  
another PEAR install (or at least still have the files from that  
install on your system) and the include_path contains this version  
before the newer one?

-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5751 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20151022/21a5f08a/attachment.bin>


More information about the horde mailing list