v2.5.0 bug – Argument #1 ($methods) must be of type array, null given

Updating to 2.5.1 fixed it

2024-01-24T06:08:52+00:00 CRITICAL Uncaught TypeError: WooCommerce\PayPalCommerce\WcSubscriptions\WcSubscriptionsModule::WooCommerce\PayPalCommerce\WcSubscriptions{closure}(): Argument #1 ($methods) must be of type array, null given, called in /home/MyDomain.com/home/public_html/wp-includes/class-wp-hook.php on line 324 and defined in /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-subscriptions/src/WcSubscriptionsModule.php:161
Stack trace: 0 /home/MyDomain.com/home/public_html/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\WcSubscriptions\WcSubscriptionsModule->WooCommerce\PayPalCommerce\WcSubscriptions{closure}() 1 /home/MyDomain.com/home/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() 2 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(333): apply_filters() 3 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php(93): WC_Payment_Gateways->get_available_payment_gateways() 4 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php(71): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\Payments::has_gateways() 5 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/WooCommercePayments.php(125): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\Payments->is_complete() 6 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(304): Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\WooCommercePayments->can_view() 7 [internal function]: Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->Automattic\WooCommerce\Admin\Features\OnboardingTasks{closure}() 8 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(301): array_filter() 9 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php(171): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->get_viewable_tasks() 10 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php(349): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskList->is_visible() 11 [internal function]: Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskLists::Automattic\WooCommerce\Admin\Features\OnboardingTasks{closure}() 12 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php(346): array_filter() 13 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php(217): Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskLists::get_visible() 14 /home/MyDomain.com/home/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingSetupWizard->component_settings() 15 /home/MyDomain.com/home/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() 16 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminSharedSettings.php(61): apply_filters() 17 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(268): Automattic\WooCommerce\Internal\Admin\WCAdminSharedSettings->Automattic\WooCommerce\Internal\Admin{closure}() 18 /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(393): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->execute_lazy_data() 19 /home/MyDomain.com/home/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->enqueue_asset_data() 20 /home/MyDomain.com/home/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 21 /home/MyDomain.com/home/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 22 /home/MyDomain.com/home/public_html/wp-admin/admin-footer.php(95): do_action() 23 /home/MyDomain.com/home/public_html/wp-admin/admin.php(297): require_once(‘/home/555033.cl…’) 24 {main}

thrown in /home/MyDomain.com/home/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-subscriptions/src/WcSubscriptionsModule.php on line 161

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer