Skip to content

Crash in Hook #6

Description

@mortenmathiasen

Using whmcs 8.7.2 and latest version of QuickPay module clientarea crashes when trying to change credit card details:

TypeError: http_build_query(): Argument #1 ($data) must be of type array, null given in modules/gateways/quickpay.php:862
Stack trace:
#0 modules/gateways/quickpay.php(862): http_build_query(NULL, '', '&')
#1 modules/gateways/quickpay.php(456): helper_quickpay_request('e76457161e8d05...', 'subscriptions/3...', NULL, 'GET')
#2 includes/hooks/quickpay_hook_product_view.php(114): helper_update_subscription(Array)
#3 includes/hooks/quickpay_hook_product_view.php(40): handle_change_card_request('999999999', 97)
#4 [internal function]: WHMCS\Utility\SafeInclude::{closure}(Array)
#5 vendor/whmcs/whmcs-foundation/lib/Hook/Manager.php(0): call_user_func(Object(Closure), Array)
#6 vendor/illuminate/support/Facades/Facade.php(261): WHMCS\Hook\Manager->run('ClientAreaProdu...', Array, false)
#7 includes/functions.php(0): Illuminate\Support\Facades\Facade::__callStatic('run', Array)
#8 clientarea.php(0): run_hook('ClientAreaProdu...', Array)
#9 {main}

What is going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions