• Resolved marcelwp5

    (@marcelwp5)


    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!

    • This topic was modified 1 month, 1 week ago by marcelwp5.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Marcel,

    Thank you for reaching out and providing the log regarding the recurring failed actions.

    The error you’re seeing is not one we can identify as a known issue. Which version of the Klarna Payments for WooCommerce plugin are you using, when the error occurs?

    Thread Starter marcelwp5

    (@marcelwp5)

    Hello anyakrokedil and thank you for your prompt response.

    We are currently using version 3.0.7 of the Klarna Payments for WooCommerce plugin.
    Lately, we get the failed action about daily.

    anyakrokedil

    (@anyakrokedil)

    Hi Marcel,

    You’re using a version of the plugin that’s about 1.5 years old, and there have been significant changes to the plugin since then. I recommend updating to the latest version to see if this resolves the issues you’re experiencing.

    Before updating, please be sure to create a backup of your site as the new version includes many changes. After the update, let me know if the issue persists, and I’ll be happy to assist you further if needed.

    Plugin Author Kristi at Klarna

    (@klarna)

    Closing per above comment

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