[horde] Hit reply to all gives Cannot use object of type Horde_Mime_Headers as array
Louis-Philippe Allard
lp.allard.1 at gmail.com
Sun Nov 22 17:59:05 UTC 2015
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>:
>>>>>>>
>>>>>>>> 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/hordeprojecthttps://www.twitter.com/hordeproject
Hello Michael, sorry for the delay in responding I got caught up in other
stuff and your reply went by without me noticing it...
I am using Centos 7 (minimal install for a headless server). I am not
sure how to check if there's 2 pear installed on the system but I doubt it,
I installed Centos myself, then proceded directly to the instructions page
on how to install horde webmail. So unless the horde instructions have me
install several pears, I wouldnt have more than one pear installed.
At least, running "pear config-show" gives this:
Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir /usr/bin
PEAR documentation directory doc_dir /usr/share/doc/pear
PHP extension directory ext_dir
/usr/lib64/php/modules
Base Horde directory horde_dir
/usr/share/pear/www/horde
PEAR directory php_dir
/usr/share/php
PEAR Installer cache directory cache_dir /var/cache/php-pear
PEAR configuration file cfg_dir /etc/pear
directory
PEAR data directory data_dir
/usr/share/pear-data
PEAR Installer download download_dir /tmp/pear/download
directory
Systems manpage files man_dir /usr/share/man
directory
PEAR metadata directory metadata_dir /var/lib/pear
PHP CLI/CGI binary php_bin /usr/bin/php
php.ini location php_ini <not set>
--program-prefix passed to php_prefix <not set>
PHP's ./configure
--program-suffix passed to php_suffix <not set>
PHP's ./configure
PEAR Installer temp directory temp_dir /var/tmp
PEAR test directory test_dir
/usr/share/tests/pear
PEAR www files directory www_dir /var/www/html
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin /usr/bin/gpg
Signature Key Directory sig_keydir /etc/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
User Configuration File Filename /root/.pearrc
System Configuration File Filename /etc/pear.conf
Sorry for the mess, this is not easy to copy paste a terminal output here..
Also, with the other email I just sent to the maillist about a fatal
error related to Nag, I am starting to wonder if they wouldnt be linked
together??
All was well about 4 months ago so something went wrong with one of the
updates since then..
Thanks
Louis-Philippe Allard
lp.allard.1 at gmail.com
Sent from Horde Groupware - GNU/Linux
More information about the horde
mailing list