[horde] ingo error

Stefan Johänntgen Stefan at NicoleJo.de
Thu Jan 25 21:44:05 UTC 2018


> Am 01.01.2018 um 21:54 schrieb Michael J Rubinsky <mrubinsk at horde.org>:
> 
> 
> Quoting Stefan Johänntgen <Stefan at nicolejo.de>:
> 
>> Hi, sometimes there is an ingo error:
>> 
>> HORDE[6522]: [ingo] Error: Call to a member function getParam() on null in /var/www/mail/horde/ingo/config/hooks.local.php:36
>> Stack trace:
>> #0 /usr/share/php/Horde/Core/Hooks.php(61): Ingo_Hooks->transport_auth('timsieved')
>> #1 /var/www/mail/horde/ingo/lib/Factory/Transport.php(43): Horde_Core_Hooks->callHook('transport_auth', 'ingo', Array)
>> #2 /var/www/mail/horde/ingo/lib/Session.php(81): Ingo_Factory_Transport->create(Array)
>> #3 /var/www/mail/horde/ingo/lib/Application.php(78): Ingo_Session::create()
>> #4 /usr/share/php/Horde/Registry/Application.php(117): Ingo_Application->_init()
>> #5 /usr/share/php/Horde/Registry.php(1197): Horde_Registry_Application->init()
>> #6 /usr/share/php/Horde/Registry.php(1635): Horde_Registry->callAppMethod('ingo', 'init')
>> #7 /var/www/mail/horde/ingo/lib/Api.php(33): Horde_Registry->pushApp('ingo')
>> #8 /usr/share/php/Horde/Registry/Api.php(86): Ingo_Api->disabled()
>> #9 /usr/share/php/Horde/Registry.php(979): Horde_Registry_Api->methods()
>> #10 /usr/share/php/Horde/Rpc/Xmlrpc.php(34): Horde_Registry->listMethods()
>> #11 /usr/share/php/Horde/Rpc.php(253): Horde_Rpc_Xmlrpc->__construct(Object(Horde_Controller_Request_Http), Array)
>> #12 /var/www/mail/horde/rpc.php(120): Horde_Rpc::factory('Xmlrpc', Object(Horde_Controller_Request_Http), Array)
>> #13 {main} [pid 6522 on line 74 of "/usr/share/php/Horde/ErrorHandler.php"]
>> 
>> 
>> Do I need this hooks.local.php? I mean I did not install these
> 
> Well, they were put there *somehow*...
> 
> Are you using a sieve backend with Ingo?


Yes, I use sieve. The content of the file hooks.local.php are:

<?php
/**
 * Ingo Hooks configuration file.
 *
 * THE HOOKS PROVIDED IN THIS FILE ARE EXAMPLES ONLY.  DO NOT ENABLE THEM
 * BLINDLY IF YOU DO NOT KNOW WHAT YOU ARE DOING.  YOU HAVE TO CUSTOMIZE THEM
 * TO MATCH YOUR SPECIFIC NEEDS AND SYSTEM ENVIRONMENT.
 *
 * For more information please see the horde/config/hooks.php.dist file.
 *
 * $Id: 85e44815957f14306d39bf07a12ab328495d6b2f $
 */

class Ingo_Hooks
{
    /**
     * Returns the username/password needed to connect to the transport
     * backend.
     *
     * @param string $driver  The driver name (array key from backends.php).
     *
     * @return mixed  If non-array, uses Horde authentication credentials
                      (DEFAULT). Otherwise, an array with the following keys
     *                (non-existent keys will use default values):
     *  - euser: (string; SIEVE ONLY) For the sieve driver, the effective
     *           user to use.
     *  - password: (string) Password.
     *  - username: (string) User name.
     */
    public function transport_auth($driver)
    {
        switch ($driver) {
        case 'timsieved':
        $ob = $GLOBALS['registry']->call('mail/imapOb');
        return array(
        'euser' => $ob->getParam('username'),
        'password' => $ob->getParam('password'),
        'username' => $ob->getParam('username')
        );
        }return true;
    }
}

I install it with this HowTo (only german):
http://www.radnerd.de/artikel/vom-radsport/2013/02/sieve-mit-dovecot-und-horde-5-ingo.html

Can you help me?



> 
> 
>> The content of my /var/www/mail/horde/ingo/config/hooks.local.php is:
>> 
>> <?php
>> /**
>> * Ingo Hooks configuration file.
>> *
>> * THE HOOKS PROVIDED IN THIS FILE ARE EXAMPLES ONLY.  DO NOT ENABLE THEM
>> * BLINDLY IF YOU DO NOT KNOW WHAT YOU ARE DOING.  YOU HAVE TO CUSTOMIZE THEM
>> * TO MATCH YOUR SPECIFIC NEEDS AND SYSTEM ENVIRONMENT.
>> *
>> * For more information please see the horde/config/hooks.php.dist file.
>> *
>> * $Id: 85e44815957f14306d39bf07a12ab328495d6b2f $
>> */
>> 
>> class Ingo_Hooks
>> {
>>    /**
>>     * Returns the username/password needed to connect to the transport
>>     * backend.
>>     *
>>     * @param string $driver  The driver name (array key from backends.php).
>>     *
>>     * @return mixed  If non-array, uses Horde authentication credentials
>>                      (DEFAULT). Otherwise, an array with the following keys
>>     *                (non-existent keys will use default values):
>>     *  - euser: (string; SIEVE ONLY) For the sieve driver, the effective
>>     *           user to use.
>>     *  - password: (string) Password.
>>     *  - username: (string) User name.
>>     */
>>    public function transport_auth($driver)
>>    {
>> 	switch ($driver) {
>> 	case 'timsieved':
>> 	$ob = $GLOBALS['registry']->call('mail/imapOb');
>> 	return array(
>> 	'euser' => $ob->getParam('username'),
>> 	'password' => $ob->getParam('password'),
>>        'username' => $ob->getParam('username')
>>        );
>>        }return true;
>>    }
>> }
>> 
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
> 
> 
> 
> -- 
> mike
> The Horde Project
> http://www.horde.org
> https://www.facebook.com/hordeproject
> https://www.twitter.com/hordeproject
> <Mail-Anhang>-- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org



More information about the horde mailing list