• Resolved eglemcom

    (@eglemcom)


    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 92

    I can’t find any solution, help ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @eglemcom,

    This error seems to be caused by a third-party PayPal integration and is not coming from PayPal Payments. We recommend not using multiple PayPal integrations at the same time in any case.
    To better understand what could be causing this issue for you, could you please share with us a copy of your WooCommerce system report? The system report can be accessed from here:
    WooCommerce > Status > Get system report > Copy for support
    Thanks!

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @eglemcom,

    As we have not heard back from you and the error you mentioned is not related to PayPal Payments, but more likely to this PayPal integration, I’m marking this thread as resolved.
    We would also appreciate if you could update your review here as the error is caused by a different PayPal plugin.
    If you have any further questions regarding PayPal Payments, please feel free to reopen this topic or create a new one.
    Thanks!

    Kind regards,
    Niklas

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Critical Error when paying by card’ is closed to new replies.