Fatal Error (too few arguments)
-
Received an email: “WordPress caught an error with one of your plugins, WooCommerce Payments.”
Website LOOKS okay when I view at first glance.
>> What could have caused this? (I recently updated plugins, not sure if thats why?)
>> Do I need to worry about this or do anything?Error Details
=============
An error of type E_ERROR was caused in line 54 of the file /var/www/wp-content/plugins/woocommerce-payments/includes/admin/class-wc-rest-payments-orders-controller.php. Error message: Uncaught ArgumentCountError: Too few arguments to function WC_REST_Payments_Orders_Controller::__construct(), 3 passed in /var/www/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php on line 592 and exactly 4 expected in /var/www/wp-content/plugins/woocommerce-payments/includes/admin/class-wc-rest-payments-orders-controller.php:54
Stack trace:
#0 /var/www/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php(592): WC_REST_Payments_Orders_Controller->__construct(Object(WC_Payments_API_Client), Object(WCPay\Payment_Methods\CC_Payment_Gateway), Object(WC_Payments_Customer_Service))
#1 /var/www/wp-includes/class-wp-hook.php(307): WC_Payments::init_rest_api(Object(WP_REST_Server))
#2 /var/www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#3 /var/www/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#4 /var/www/wp-includes/rest-api.php(553): do_action(‘rest_api_init’, Object(WP_REST_Server))
#5 /var/www/wp-includes/rest-api.php(511): rest_get_server`Site info
==========
WordPress version 5.9.2
PHP version 7.3.30
Theme: Beaver Builder
WooCommerce Payments (version 3.8.2)
Other Plugins installed:
AIO SEO, Beaver Builder, Beaver Themer, CF7, Google Listings and Ads, Jetpack, Smash Balloon IG Feed, Sucuri, Woo 6.2.2, WooCommerce Shipping & Tax, WooCommercce Weight based shipping, and WP101 Video Tutorials
- The topic ‘Fatal Error (too few arguments)’ is closed to new replies.