Hook kp_wc_authorization causing regular failed scheduled actions
-
We are seeing recurring failed actions for the kp_wc_authorization hook, with associated fatal errors.
Here one of these logs:Uncaught TypeError: Cannot access offset of type string on string in /my/site/path/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Order/Order.php:89 CONTEXT: {"error":{"type":1,"file":"\/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/vendor\/krokedil\/woocommerce\/src\/Order\/Order.php","line":89},"backtrace":["","#0 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/vendor\/krokedil\/woocommerce\/src\/Order\/Order.php(44): Krokedil\\WooCommerce\\Order\\Order->set_line_coupons()","#1 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/classes\/requests\/helpers\/class-kp-order-data.php(87): Krokedil\\WooCommerce\\Order\\Order->__construct(Object(WC_Order), Array)","#2 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/classes\/requests\/helpers\/class-kp-order-data.php(70): KP_Order_Data->get_order_data()","#3 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/classes\/requests\/class-kp-requests-post.php(75): KP_Order_Data->__construct('b2c', '123456')","#4 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/classes\/requests\/post\/class-kp-place-order.php(34): KP_Requests_Post->get_body()","#5 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/classes\/requests\/class-kp-requests-post.php(34): KP_Place_Order->get_body()","#6 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/vendor\/krokedil\/wp-api\/src\/Request.php(129): KP_Requests_Post->get_request_args()","#7 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/classes\/class-kp-api.php(100): Krokedil\\WpApi\\Request->request()","#8 \/my\/site\/path\/wp-content\/plugins\/klarna-payments-for-woocommerce\/classes\/class-kp-ajax.php(58): KP_Api->place_order('XX', 'aaaaaaa-11111...', '123456')","#9 \/my\/site\/path\/wp-includes\/class-wp-hook.php(324): KP_AJAX::kp_wc_place_order('')","#10 \/my\/site\/path\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)","#11 \/my\/site\/path\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)","#12 \/my\/site\/path\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(96): do_action('wc_ajax_kp_wc_p...')","#13 \/my\/site\/path\/wp-includes\/class-wp-hook.php(324): WC_AJAX::do_wc_ajax('')","#14 \/my\/site\/path\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters(false, Array)","#15 \/my\/site\/path\/wp-includes\/plugin.php(517): WP_Hook->do_action(Array)","#16 \/my\/site\/path\/wp-includes\/template-loader.php(13): do_action('template_redire...')","#17 \/my\/site\/path\/wp-blog-header.php(19): require_once('\/my\/site\/path\/...')","#18 \/my\/site\/path\/index.php(17): require('\/my\/site\/path\/...')","#19 {main}","thrown"]}
Is this some known error? Is there a fix for this?
Thank you in advance for your help!
- You must be logged in to reply to this topic.