[horde] ingo error

Stefan Johänntgen Stefan at NicoleJo.de
Fri Dec 29 18:02:59 UTC 2017


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

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;
    }
}



More information about the horde mailing list