[ingo] Error related to hook

Jan Schneider jan at horde.org
Thu Mar 24 16:26:17 UTC 2016


Zitat von Hanns Mattes <hanns at hannsmattes.de>:

> Hi,
>
> Am 22.03.2016 um 20:44 schrieb Jan Schneider:
>>
>> Zitat von Hanns Mattes <hanns at hannsmattes.de>:
>>
>>> Hi,
>>>
>>> I find this error in the logs:
>>>
>>> EMERG: HORDE [ingo] Call to a member function getParam() on null [pid
>>> 26339 on line 26 of "/etc/horde/ingo/hooks.php"]
>>>
>>> hooks.php:
>>>
>>> <?php
>>>
>>> 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':
>>>              // Example #2: Use IMP password/username.
>>>              $ob = $GLOBALS['registry']->call('mail/imapOb');
>>>              return array(
>>>                  'euser' => $ob->getParam('username'),
>>>                  'password' => $ob->getParam('password'),
>>>                  'username' => $ob->getParam('username')
>>>              );
>>>          }
>>>
>>>          return true;
>>>      }
>>>
>>>
>>> }
>>>
>>> Nevertheless Ingo is working fine.
>>
>> Then where do these logs come from?
>
> They are reported in horde.log
>
> Regards Hanns

Yes, sure, but where and when are they generated?

-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the ingo mailing list