Critical Error when paying by card
-
Hello, when some customers pay by card, their cards get declined and the website throws critical error, as the log states:
2022-12-01T08:49:42+00:00 CRITICAL Uncaught Error: Cannot use object of type Paypal_Checkout_For_Woocommerce_Settings as array in /home/labsolus/www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:92 Stack trace: #0 /home/labsolus/www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php(46): WC_REST_Payment_Gateways_Controller->get_settings(Object(Paypal_Checkout_For_Woocommerce_Gateway)) #1 /home/labsolus/www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php(127): WC_REST_Payment_Gateways_Controller->prepare_item_for_response(Object(Paypal_Checkout_For_Woocommerce_Gateway), Object(WP_REST_Request)) #2 /home/labsolus/www/wp-includes/rest-api/class-wp-rest-server.php(1171): WC_REST_Payment_Gateways_V2_Controller->get_items(Object(WP_REST_Request)) #3 /home/labsolus/www/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wc/v3/payment_...', Array, NULL) #4 /home/labsolus/www/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch(Object(WP_REST_Request)) #5 /home/labsolus/www/wp-includes/rest-api.php(410): WP_REST_Server->serve_request('/wc/v3/payment_...') #6 /home/labsolus/www/wp-includes/class-wp-hook.php(308): rest_api_loaded(Object(WP)) #7 /home/labsolus/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #8 /home/labsolus/www/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #9 /home/labsolus/www/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array) #10 /home/labsolus/www/wp-includes/class-wp.php(780): WP->parse_request('') #11 /home/labsolus/www/wp-includes/functions.php(1332): WP->main('') #12 /home/labsolus/www/wp-blog-header.php(16): wp() #13 /home/labsolus/www/index.php(17): require('/home/labsolus/...') #14 {main} thrown dans /home/labsolus/www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php à la ligne 92I can’t find any solution, help ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Critical Error when paying by card’ is closed to new replies.