• Resolved armedandgorgeous

    (@armedandgorgeous)


    Hi, I know this is technically not the plugin forum but I cannot find it and it still relates to klarna. Anyway I had a critical error on my website today, I debugged it and got this error code:

    [22-Apr-2024 11:19:05 UTC] PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, string given in /var/www/html/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/klarna-onsite-messaging/src/KlarnaOnsiteMessaging.php:76
    Stack trace: 0 /var/www/html/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/klarna-onsite-messaging/src/KlarnaOnsiteMessaging.php(76): get_class() 1 /var/www/html/wp-content/plugins/klarna-payments-for-woocommerce/klarna-payments-for-woocommerce.php(176): Krokedil\KlarnaOnsiteMessaging\KlarnaOnsiteMessaging->__construct() 2 /var/www/html/wp-includes/class-wp-hook.php(324): WC_Klarna_Payments->init() 3 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 4 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() 5 /var/www/html/wp-settings.php(550): do_action() 6 /var/www/html/wp-config.php(98): require_once(‘…’) 7 /var/www/html/wp-load.php(50): require_once(‘…’) 8 /var/www/html/wp-blog-header.php(13): require_once(‘…’) 9 /var/www/html/index.php(17): require(‘…’) 10 {main}

    thrown in /var/www/html/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/klarna-onsite-messaging/src/KlarnaOnsiteMessaging.php on line 76
    [22-Apr-2024 11:19:05 UTC] PHP Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /var/www/html/wp-includes/functions.php on line 6078

    I have deactivated klarna onsite messaging and it works now but is there a reason for this error than can be easily solved?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • me too

    Also had the same issue after updating this morning to 3.5.0

    2024/04/22 07:27:17 [error] 2225586#2225586: *2892061 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, string given in /var/www/mydomain.com/public/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/klarna-onsite-messaging/src/KlarnaOnsiteMessaging.php:76
    Stack trace:
    #0 /var/www/mydomain.com/public/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/klarna-onsite-messaging/src/KlarnaOnsiteMessaging.php(76): get_class()
    #1 /var/www/mydomain.com/public/wp-content/plugins/klarna-payments-for-woocommerce/klarna-payments-for-woocommerce.php(176): Krokedil\KlarnaOnsiteMessaging\KlarnaOnsiteMessaging->__construct()
    #2 /var/www/mydomain.com/public/wp-includes/class-wp-hook.php(324): WC_Klarna_Payments->init()
    #3 /var/www/mydomain.com/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /var/www/mydomain.com/public/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /var/www/mydomain.com/public/wp-settings.php(550): do_action()
    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    In the latest version of Klarna Payments for WooCommerce (KP) 3.5.0 Klarna On Site Messaging is now built in and part of the Klarna Payments plugin. This means that you do not need the Klarna On Site Messaging plugin if you are using version 3.5.0 of KP.

    We will still look into this as it should not generate a fatal error, but in the meantime the solution is to deactivate the Klarna On Site Messaging plugin.

    Thread Starter armedandgorgeous

    (@armedandgorgeous)

    okay thank you I will add messaging via klarna plugin then

    We dont use @klarna On Site Messaging plugin@ but also have the similar error in query monitor about missing dependences

    • This reply was modified 10 months, 1 week ago by richardferlow.
    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    Regarding errors with Klarna On Site Messaging in the new Klarna Payments version, it was due to a bug in the plugin and should now be solved in the latest version 3.5.2 of Klarna Payments for WooCommerce.

    I’m referring to this error that appears in Query Monitor. Version 3.5.2.

    Hi, I have updated the plugin to the latest version, and deactivated the Klarna On-Site Messaging for WooCommerce plugin also, but still the error message banner is showing in wordpress.

    View post on imgur.com

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi @richardferlow,

    Regarding the error Missing Dependencies that appeared in Query Monitor, we are no longer able to recreate this issue does the error still appear on your site?

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi @dennycy,

    Is the message still visible if you delete the separate Klarna On Site Messaging plugin?

    Plugin Author Kristi at Klarna

    (@klarna)

    Closing this, as we believe all the issues relating to On-site messaging being included within the Klarna Payments plugins should now be resolved (per latest release version 3.5.4 released 2024-May-13).

    If further support is needed, please let us know.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Klarna On-Site Messaging for WooCommerce’ is closed to new replies.