#1059770 php-horde-core: Error "ReflectionMethod::__construct(): Argument #2 ($method) cannot be null"

#1059770#5
Date:
2023-12-31 17:28:44 UTC
From:
To:
Dear Maintainer,

When trying to create a new message with Horde IMP, an error is
displayed:

ValueError Object
(
    [message:protected] => ReflectionMethod::__construct(): Argument #2 ($method) cannot be null when argument #1 ($objectOrMethod) is an object
    [string:Error:private] => ValueError: ReflectionMethod::__construct(): Argument #2 ($method) cannot be null when argument #1 ($objectOrMethod) is an object in /usr/share/php/Horde/Core/Ajax/Application/Handler.php:91
Stack trace:
#0 /usr/share/php/Horde/Core/Ajax/Application/Handler.php(91): ReflectionMethod->__construct()
#1 /usr/share/php/Horde/Core/Ajax/Application.php(271): Horde_Core_Ajax_Application_Handler->has()
#2 /usr/share/php/Horde/Core/Ajax/Application.php(84): Horde_Core_Ajax_Application->_getHandler()
#3 /usr/share/php/Horde/Core/Factory/Ajax.php(44): Horde_Core_Ajax_Application->__construct()
#4 /usr/share/horde/imp/lib/Dynamic/Compose.php(239): Horde_Core_Factory_Ajax->create()
#5 /usr/share/horde/imp/lib/Dynamic/Base.php(90): IMP_Dynamic_Compose->_init()
#6 /usr/share/horde/imp/dynamic.php(33): IMP_Dynamic_Base->__construct()
#7 {main}
    [code:protected] => 0
    [file:protected] => /usr/share/php/Horde/Core/Ajax/Application/Handler.php
    [line:protected] => 91
    [trace:Error:private] => Array
        (
            [0] => Array
                (
                    [file] => /usr/share/php/Horde/Core/Ajax/Application/Handler.php
                    [line] => 91
                    [function] => __construct
                    [class] => ReflectionMethod
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => /usr/share/php/Horde/Core/Ajax/Application.php
                    [line] => 271
                    [function] => has
                    [class] => Horde_Core_Ajax_Application_Handler
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => /usr/share/php/Horde/Core/Ajax/Application.php
                    [line] => 84
                    [function] => _getHandler
                    [class] => Horde_Core_Ajax_Application
                    [type] => ->
                )

            [3] => Array
                (
                    [file] => /usr/share/php/Horde/Core/Factory/Ajax.php
                    [line] => 44
                    [function] => __construct
                    [class] => Horde_Core_Ajax_Application
                    [type] => ->
                )

            [4] => Array
                (
                    [file] => /usr/share/horde/imp/lib/Dynamic/Compose.php
                    [line] => 239
                    [function] => create
                    [class] => Horde_Core_Factory_Ajax
                    [type] => ->
                )

            [5] => Array
                (
                    [file] => /usr/share/horde/imp/lib/Dynamic/Base.php
                    [line] => 90
                    [function] => _init
                    [class] => IMP_Dynamic_Compose
                    [type] => ->
                )

            [6] => Array
                (
                    [file] => /usr/share/horde/imp/dynamic.php
                    [line] => 33
                    [function] => __construct
                    [class] => IMP_Dynamic_Base
                    [type] => ->
                )

        )

    [previous:Error:private] =>
)