• Hello,

    Please check the screenshot:

    https://prnt.sc/gK7LknWyae4l


    2024-11-12T16:13:53+00:00 Critical Uncaught TypeError: WooCommerce\PayPalCommerce\ApiClient\Factory\AddressFactory::from_paypal_response(): Argument #1 ($data) must be of type stdClass, array given, called in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/PayerFactory.php on line 127 and defined in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/AddressFactory.php:71
    Additional context
    {
    "error": {
    "type": 1,
    "file": "/var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/AddressFactory.php",
    "line": 71
    },
    "backtrace": [
    "",
    "#0 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/PayerFactory.php(127): WooCommerce\PayPalCommerce\ApiClient\Factory\AddressFactory->from_paypal_response()",
    "#1 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/CreateOrderEndpoint.php(543): WooCommerce\PayPalCommerce\ApiClient\Factory\PayerFactory->from_paypal_response()",
    "#2 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/CreateOrderEndpoint.php(447): WooCommerce\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint->payer()",
    "#3 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/CreateOrderEndpoint.php(307): WooCommerce\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint->create_paypal_order()",
    "#4 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(189): WooCommerce\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint->handle_request()",
    "#5 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}()",
    "#6 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
    "#7 /var/www/mysite.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()",
    "#8 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()",
    "#9 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()",
    "#10 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
    "#11 /var/www/mysite.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()",
    "#12 /var/www/mysite.com/htdocs/wp-includes/template-loader.php(13): do_action()",
    "#13 /var/www/mysite.com/htdocs/wp-blog-header.php(19): require_once('...')",
    "#14 /var/www/mysite.com/htdocs/index.php(17): require('...')",
    "#15 {main}",
    "thrown"
    ]
    }
    2024-11-12T16:13:53+00:00 Critical Uncaught TypeError: WooCommerce\PayPalCommerce\ApiClient\Factory\AddressFactory::from_paypal_response(): Argument #1 ($data) must be of type stdClass, array given, called in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/PayerFactory.php on line 127 and defined in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/AddressFactory.php:71
    Additional context
    {
    "error": {
    "type": 1,
    "file": "/var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/AddressFactory.php",
    "line": 71
    },
    "backtrace": [
    "",
    "#0 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/PayerFactory.php(127): WooCommerce\PayPalCommerce\ApiClient\Factory\AddressFactory->from_paypal_response()",
    "#1 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/CreateOrderEndpoint.php(543): WooCommerce\PayPalCommerce\ApiClient\Factory\PayerFactory->from_paypal_response()",
    "#2 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/CreateOrderEndpoint.php(447): WooCommerce\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint->payer()",
    "#3 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/CreateOrderEndpoint.php(307): WooCommerce\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint->create_paypal_order()",
    "#4 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(189): WooCommerce\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint->handle_request()",
    "#5 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}()",
    "#6 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
    "#7 /var/www/mysite.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()",
    "#8 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()",
    "#9 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()",
    "#10 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
    "#11 /var/www/mysite.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()",
    "#12 /var/www/mysite.com/htdocs/wp-includes/template-loader.php(13): do_action()",
    "#13 /var/www/mysite.com/htdocs/wp-blog-header.php(19): require_once('...')",
    "#14 /var/www/mysite.com/htdocs/index.php(17): require('...')",
    "#15 {main}",
    "thrown"
    ]
    }

    Could you please let us know what might be reason please?

    • This topic was modified 1 week, 2 days ago by alexli126.
Viewing 1 replies (of 1 total)
  • Plugin Support Femi

    (@femiyb)

    Hello @alexli126

    At this stage, we need a bit more information to understand this issue fully. Could you let us know:

    • When and where does this issue occur? For instance, does it happen during checkout, order creation, or another specific part of the PayPal payment process?
    • Are you able to consistently reproduce this error? If so, please describe the steps you follow to trigger it.
    • Any recent changes or updates, including updates to the WooCommerce PayPal Payments plugin, WooCommerce, or other plugins/themes, can be helpful for diagnosing this.

    This additional information will help us investigate and identify a solution for you more effectively.

    Regards,
    Femi.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.