[horde] Problems with selecting addressbooks - php errors

David Cunningham dcunningham at additionnetworks.net
Fri Feb 3 20:53:58 UTC 2017


> On Feb 2, 2017, at 10:33 PM, Michael J Rubinsky <mrubinsk at horde.org> wrote:
> 
> Quoting David Cunningham <dcunningham at additionnetworks.net>:
> 
>> Hi Michael,
>> 
>> I’m sorry, I don’t know what that means to not top post, apparently.
>> 
>> And sorry that I missed your response.
>> 
>> I do not appear to have a “search_sources” option in my or any other user’s horde_prefs table.  So, that appears to not be it.
> 
> This would be a preference for IMP, the mail application. Be sure to also check IMP's config/prefs.local.php file to be sure there is nothing set there for it.

Sorry… here is the entry in the prefs for IMP:

// address book selection widget
$_prefs['sourceselect'] = array(
    'type' => 'special',
    'handler' => 'IMP_Prefs_Special_Sourceselect',
    'requires_nolock' => array('search_sources'),
    'on_init' => function($ui) {
        Horde_Core_Prefs_Ui_Widgets::addressbooksInit();
    }
);

// Address book(s) to use when expanding addresses
// Refer to Turba's config/backends.php for possible source values
//
// You can provide default values this way:
//   'value' => json_encode(array('source_one', 'source_two'))
$_prefs['search_sources'] = array(
//    'value' => 'localldap'
   'value' => json_encode(array(
       'localldap' => array('name', 'email'),
       'localsql' => array('name')
   ))
);

// Field(s) to use when expanding addresses
// Refer to Turba's config/backends.php for possible source and field values
//
// If you want to provide a default value, this field depends on the
// search_sources preference. For example:
//   'value' => json_encode(array(
//       'source_one' => array('field_one', 'field_two'),
//       'source_two' => array('field_three')
//   ))
// will search the fields 'field_one' and 'field_two' in source_one and
// 'field_three' in source_two.
$_prefs['search_fields'] = array(
    'value' => ''
);



> 
>> 
>> I do have this set in prefs.php.local for turba:
> 
> The file name should be prefs.local.php, not prefs.php.local.

Sorry, typoed…  It IS in the right file.

> 
>> // Columns to be displayed in Browse and Search results, with entries
>> // for the columns displayed for each address book.  Separate address
>> // book stanzas with \n and columns with \t. The "name" column is
>> // currently always displayed first and so cannot be modified here.
>> // Double quotes MUST be used as in the example.
>> $_prefs['columns'] = array(
>>    'value' => "localsql\temail\nlocalldap\temail"
>> );
> 
> This pref is for displaying the columns when using Turba and browsing an addressbook, not when setting IMP's addressbook preference.

Right… my bad….
> 
>> Which also doesn’t appear to work as intended.
> 
> If you truly have named the file prefs.php.local, then it will never be loaded.

No, it’s named prefs-mydomainname.php

> 
> 
> Back to the original problem though, if you can't find that pref entry in your database, or in imp/config/prefs.local.php then I'm out of quick ideas. I'd really need to look at your system and trace the code to see where it is coming from. If you would like this further, more in-depth help, we can provide this via our consulting services. Jan or I would be happy to discuss this with you off-list if interested.
> 
> 
> 
>> Also, either an example of a link to an example/rules on how to properly respond on this list would be appreciated.
> 
> https://en.wikipedia.org/wiki/Posting_style#Choosing_the_proper_posting_style
> 
> Basically, it makes things very difficult to parse a conversation when top posting.
> 
> 
>> Thanks,
>> 
>> Dave
>> 
>> -----Original Message-----
>> From: Michael J Rubinsky [mailto:mrubinsk at horde.org]
>> Sent: Thursday, February 2, 2017 10:24 AM
>> To: David Cunningham <dcunningham at additionnetworks.net>
>> Cc: Jan Schneider <jan at horde.org>; horde at lists.horde.org
>> Subject: Re: [horde] Problems with selecting addressbooks - php errors
>> 
>> 
>> Please do not top post and keep discussions on the mailing list.
>> 
>> Quoting David Cunningham <dcunningham at additionnetworks.net>:
>> 
>>> Hi Michael,
>>> 
>>> Just making sure I didn’t miss a reply on this.
>> 
>> Well, considering you replied to the email that contained my reply....
>> 
>> 
>> 
>>> I’m copying Jan too who frequently helps me with issues.
>>> 
>>> Thanks,
>>> 
>>> Dave
>>> 
>>> 
>>>> On Feb 1, 2017, at 1:30 PM, Michael J Rubinsky <mrubinsk at horde.org> wrote:
>>>> 
>>>> 
>>>> Quoting David Cunningham <dcunningham at additionnetworks.net>:
>>>> 
>>>>> Hi Mike,
>>>>> 
>>>>> Were you able to take a look at this?  Do you have any suggestions?
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> Dave
>>>>> 
>>>>> 
>>>>> On Jan 30, 2017, at 2:32 PM, David Cunningham
>>>>> <dcunningham at additionnetworks.net<mailto:dcunningham at additionnetworks.net>>
>>>>> wrote:
>>>>> 
>>>>> Hi Michael,
>>>>> 
>>>>> Sorry about that… I did not see your embedded reply.
>>>>> 
>>>>> Please see this link to the 17MB debug file this created:
>>>> 
>>>> Your debug file has a LOT of unrelated entries probably from some
>>>> other issue you were trying to debug. You should remove those
>>>> Horde::debug lines from your install:
>>>> 
>>>> /var/www/html/horde/imp/lib/Maillog/Messages.php:78
>>>> 
>>>> 
>>>> 
>>>> It looks like the "search_sources" preference for the user(s)
>>>> experiencing this issue are still using an older format. This was
>>>> changed some time ago. The value is supposed to be automatically
>>>> upgraded when each user logs in. Assuming you are not setting the
>>>> default value explicitly for this preference in
>>>> imp/config/prefs.local.php, either prefs backend was not upgraded,
>>>> or perhaps you reverted your database from some old backup. Either
>>>> way, you should delete the value for the "search_sources" pref
>>>> manually in your pref backend.
>>>> 
>>>> 
>>>> 
>> 
>> 
>> <SNIP URL OF FILE>
>> 
>> 
>>>>> 
>>>>> Dave
>>>>> 
>>>>> 
>>>>> 
>>>>> On Jan 30, 2017, at 2:11 PM, Michael J Rubinsky
>>>>> <mrubinsk at horde.org<mailto:mrubinsk at horde.org>> wrote:
>>>>> 
>>>>> 
>>>>> Quoting David Cunningham
>>>>> <dcunningham at additionnetworks.net<mailto:dcunningham at additionnetworks.net>>:
>>>>> 
>>>>> On Jan 27, 2017, at 1:41 PM, David Cunningham
>>>>> <dcunningham at additionnetworks.net<mailto:dcunningham at additionnetworks.net>>
>>>>> wrote:
>>>>> 
>>>>> Yes, using the addressbook itself is no problem.
>>>>> 
>>>>> Dave
>>>>> 
>>>>> 
>>>>> On Jan 27, 2017, at 1:09 PM, Michael J Rubinsky
>>>>> <mrubinsk at horde.org<mailto:mrubinsk at horde.org>> wrote:
>>>>> 
>>>>> 
>>>>> Quoting David Cunningham
>>>>> <dcunningham at additionnetworks.net<mailto:dcunningham at additionnetworks.net>>:
>>>>> 
>>>>> Hi All,
>>>>> 
>>>>> Under preferences - mail - addressbooks I am unable to select
>>>>> columns and the addressbook selection does not appear to work.
>>>>> 
>>>>> When I watch the logs while selecting this preference menu, I get
>>>>> these errors which I assume are related:
>>>>> 
>>>>> 
>>>>> Jan 26 10:55:23 portal HORDE: [imp] PHP ERROR: Illegal offset type
>>>>> in isset or empty [pid 24776 on line 185 of
>>>>> "/usr/share/php/Horde/Core/Prefs/Ui/Widgets.php"]
>>>>> Jan 26 10:55:23 portal HORDE: [imp] PHP ERROR: Illegal offset type
>>>>> in isset or empty [pid 24776 on line 185 of
>>>>> "/usr/share/php/Horde/Core/Prefs/Ui/Widgets.php"]
>>>>> Jan 26 10:55:23 portal HORDE: [imp] PHP ERROR: array_diff():
>>>>> Argument #2 is not an array [pid 24776 on line 190 of
>>>>> "/usr/share/php/Horde/Core/Prefs/Ui/Widgets.php"]
>>>>> Jan 26 10:55:23 portal HORDE: [imp] PHP ERROR: Invalid argument
>>>>> supplied for foreach() [pid 24776 on line 190 of
>>>>> "/usr/share/php/Horde/Core/Prefs/Ui/Widgets.php"]
>>>>> ^C
>>>>> 
>>>>> Do you actually have access to any address books?
>>>>> 
>>>>> 
>>>>> 
>>>>> Any help is appreciated.  Thanks!
>>>>> 
>>>>> Dave
>>>>> --
>>>>> Horde mailing list
>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>> To unsubscribe, mail:
>>>>> horde-unsubscribe at lists.horde.org<mailto:horde-unsubscribe at lists.horde.org>
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> mike
>>>>> The Horde Project
>>>>> http://www.horde.org<http://www.horde.org/>
>>>>> https://www.facebook.com/hordeproject
>>>>> https://www.twitter.com/hordeproject
>>>>> --
>>>>> Horde mailing list
>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>> 
>>>>> --
>>>>> Horde mailing list
>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>> To unsubscribe, mail:
>>>>> horde-unsubscribe at lists.horde.org<mailto:horde-unsubscribe at lists.horde.org>
>>>>> 
>>>>> 
>>>>> Hi All,
>>>>> 
>>>>> Does anyone have any feedback on this?  I cannot figure it out for
>>>>> the life of me.
>>>>> 
>>>>> Not without the information I requested from you in my last email.
>>>>> 
>>>>> 
>>>>> 
>>>>> Dave
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> mike
>>>>> The Horde Project
>>>>> http://www.horde.org<http://www.horde.org/>
>>>>> https://www.facebook.com/hordeproject
>>>>> https://www.twitter.com/hordeproject
>>>>> --
>>>>> Horde mailing list
>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>> To unsubscribe, mail:
>>>>> horde-unsubscribe at lists.horde.org<mailto:horde-unsubscribe at lists.horde.org>
>>>> 
>>>> 
>>>> 
>>>> --
>>>> mike
>>>> The Horde Project
>>>> http://www.horde.org
>>>> https://www.facebook.com/hordeproject
>>>> https://www.twitter.com/hordeproject
>> 
>> 
>> 
>> --
>> mike
>> The Horde Project
>> http://www.horde.org
>> https://www.facebook.com/hordeproject
>> https://www.twitter.com/hordeproject
> 
> 
> 
> -- 
> mike
> The Horde Project
> http://www.horde.org
> https://www.facebook.com/hordeproject
> https://www.twitter.com/hordeproject



More information about the horde mailing list