Fatal error:ritical Uncaught TypeError
-
Hello,
Please check the screenshot:
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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.