[dev] Fatal error: Cannot use object of type PEAR_Error as array in horde/config/hooks.php

Jan Schneider jan at horde.org
Sat Dec 20 13:11:00 UTC 2008


Zitat von Andre Pawlowski <sqall at h4des.org>:

> Jan Schneider wrote:
>>
>> $fields[$field] is obviously a PEAR_Error. Dump $fields at the top
>> of the method to see what the error message is.
>>
> Ok, I did it. But I still don't know what to do. I post here the dump
> of the array (but only the part with PEAR, if you need more tell me).
>
> PEAR_Error Object
> (
>     [error_message_prefix] =>
>     [mode] => 1
>     [level] => 1024
>     [code] =>
>     [message] => Hook _horde_hook_signup_getextra in application horde
> not called.
>     [userinfo] =>
>     [backtrace] => Array
>         (
>             [0] => Array
>                 (
>                     [file] => /usr/share/php/PEAR.php
>                     [line] => 566
>                     [function] => PEAR_Error
>                     [class] => PEAR_Error
>                     [object] => PEAR_Error Object
>  *RECURSION*
>                     [type] => ->
>                     [args] => Array
>                         (
>                             [0] => Hook _horde_hook_signup_getextra in
> application horde not called.
>                             [1] =>
>                             [2] => 1
>                             [3] => 1024
>                             [4] =>
>                         )
>
>                 )
>
>             [1] => Array
>                 (
>                     [file] => /var/www/h4des.org_ssl/www/horde/lib/Horde.php
>                     [line] => 1628
>                     [function] => raiseError
>                     [class] => PEAR
>                     [type] => ::
>                     [args] => Array
>                         (
>                             [0] => Hook _horde_hook_signup_getextra in
> application horde not called.
>                         )
>
>                 )

Either specify the getextra hook, if you need it, or ignore that  
PEAR_Errors in your hook code.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list