• Resolved nosubstance0

    (@nosubstance0)


    We are getting this in our debug.log file constantly:

    [19-Sep-2024 04:19:41 UTC] PHP Warning: Undefined array key “lv” in …/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-wc-gateway-klarna-payments.php on line 230

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    What version of Klarna Payments for WooCommerce are you using?
    What version of WooCommerce and WordPress are you using?

    Thread Starter nosubstance0

    (@nosubstance0)

    php 8.1

    wordpress ?6.6.2

    woocommerce 9.3.2

    Klarna Payments for WooCommerce 3.7.3

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    I am not able to recreate this issue i my test environment with the same versions as you are using. This issue might be caused by a compatibility issue with either the theme that you are using or any other plugin that you have activated on your site, please try the following:

    • Try and change the theme to Storefront which is the theme our plugins are tested for and see if that helps.
    • If that does not help try and deactivate all plugins except for WooCommerce and our Klarna plugins and see if the issue is solved. If so, activate all plugins again one by one to see what plugin might be causing the issue.
    • Also go to WooCommerce Status –> Tools, Clear customer sessions and Clear template cache.

    I suggest that you try this in a staging environment of your site to make sure not to effect your live site and customers or create a backup of your site. You can read more about staging environments here. 

    Thread Starter nosubstance0

    (@nosubstance0)

    we still get the warnings when default theme is used and plugins disabled. here is more info on it:

    Undefined Array Key (Klarna Payments Plugin):

    • Multiple warnings indicate that the Klarna Payments plugin is trying to access undefined array keys, such as "jp" and "sv", at line 230 of class-wc-gateway-klarna-payments.php. This may result in incorrect behavior or errors when processing payments with Klarna. Fixing this involves checking how the plugin handles country-specific settings or array keys and ensuring these keys exist.
    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    When does this warning show on your site?

    Is it when you choose a specifik country in the checkout form?

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    I have created an internal task for our developers to take a look at, we will get back to you when we have more information.

    emilycestmoi

    (@emilycestmoi)

    I get the same warning. Undefined array key “jp” and “sg” in class-wc-gateway-klarna-payments.php on line 230. Started happening a few versions back. No issues before that.

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    We have now made a fix for this warning and it will be included in the next release of the plugin.

    Plugin Author Kristi at Klarna

    (@klarna)

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