[horde] Horde_Db 2.1.0 trashed Installation
Jan Schneider
jan at horde.org
Wed Mar 5 08:12:35 UTC 2014
Zitat von lst_hoe02 at kwsoft.de:
> Zitat von lst_hoe02 at kwsoft.de:
>
>> Ok, will try out and let you (and maybe others) know about the results.
>>
>> Thanks
>>
>> Andreas
>
> Close but not there :-(
>
>
> in horde/config/hooks.php:
>
> class Horde_Hooks
> {
> // PREFERENCES INIT: See above for documentation.
> public function prefs_init($pref, $value, $username, $scope_ob)
> {
> switch ($pref) {
> case 'from_addr':
> // You are responsible for bringing in to the local scope any
> // information you need. You can "global" anything else you
> // need.
> //
> // Returns an address: either just the user@ side or a full
> // address.
>
> $db_results =
> $GLOBALS['injector']->getInstance('Horde_Db_Adapter')
> ->selectValues('SELECT alias FROM
> postfix_virtual_aliases WHERE user_uid = ?',
>
> array($GLOBALS['registry']->getAuth())
> );
> return array($db_results);
$db_results already contains an array of values, don't wrap it into
another array.
>
> }
> }
> }
>
>
>
> in horde/config/prefs.local.php :
>
> $_prefs['from_addr'] = array(
> 'value' => '',
This needs to be an empty array, not a string, since you changed the
type to enum.
> 'hook' => true,
> 'type' => 'enum',
> 'desc' => _("The default e-mail address to use with this identity:")
> );
>
>
> But the drop down list for the identity is empty and the following
> error is in the logs:
>
> Mar 4 17:38:21 h2118808 HORDE: [horde] PHP ERROR: Invalid argument
> supplied for foreach() [pid 11022 on line 525 of
> "/usr/share/php/Horde/Core/Prefs/Ui.php"]
>
> Any idea how to get this working (again)?
>
> Thanks
>
> Andreas
--
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject
More information about the horde
mailing list