Fatal Error
-
Data Sources: New Orders
Fatal Error.
Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_formatted_billing_full_name() in /home/xxx.com/autpuhggwr/public_html/wp-content/plugins/wpc-smart-notification-premium/core/notification.php:171
Additional context
{
"error": {
"type": 1,
"file": "/home/xxx.com/autpuhggwr/public_html/wp-content/plugins/wpc-smart-notification-premium/core/notification.php",
"line": 171
},
"remote-logging": true,
"backtrace": [
"",
"#0 /home/xxx.com/autpuhggwr/public_html/wp-content/plugins/wpc-smart-notification-premium/core/notification.php(27): WPCSN\notification->new_orders()",
"#1 /home/xxx.com/autpuhggwr/public_html/wp-content/plugins/wpc-smart-notification-premium/core/ajax-processing.php(19): WPCSN\notification->get_content()",
"#2 /home/xxx.com/autpuhggwr/public_html/wp-includes/class-wp-hook.php(341): WPCSN\ajaxProcessing->get_content()",
"#3 /home/xxx.com/autpuhggwr/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()",
"#4 /home/xxx.com/autpuhggwr/public_html/wp-content/plugins/wpc-smart-notification-premium/core/ajax-definition.php(25): apply_filters()",
"#5 /home/xxx.com/autpuhggwr/public_html/wp-content/plugins/wpc-smart-notification-premium/core/initialization.php(62): WPCSN\ajax->__construct()",
"#6 /home/xxx.com/autpuhggwr/public_html/wp-includes/class-wp-hook.php(341): WPCSN\initialization->ajax()",
"#7 /home/xxx.com/autpuhggwr/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()",
"#8 /home/xxx.com/autpuhggwr/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()",
"#9 /home/xxx.com/autpuhggwr/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(127): do_action()",
"#10 /home/xxx.com/autpuhggwr/public_html/wp-includes/class-wp-hook.php(341): WC_AJAX::do_wc_ajax()",
"#11 /home/xxx.com/autpuhggwr/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()",
"#12 /home/xxx.com/autpuhggwr/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()",
"#13 /home/xxx.com/autpuhggwr/public_html/wp-includes/template-loader.php(23): do_action()",
"#14 /home/xxx.com/autpuhggwr/public_html/wp-blog-header.php(19): require_once('...')",
"#15 /home/xxx.com/autpuhggwr/public_html/index.php(17): require('...')",
"#16 {main}",
"thrown"
]
}Root cause: When querying with
WC_Order_Query, refunds were also returned as orders. Refund objects belong to the classAutomattic\WooCommerce\Admin\Overrides\OrderRefund, which does not have billing address methods such asget_formatted_billing_full_name()orget_billing_city().
You must be logged in to reply to this topic.