Title: Error plugin
Last modified: June 1, 2023

---

# Error plugin

 *  Resolved [mimmo1984](https://wordpress.org/support/users/mimmo1984/)
 * (@mimmo1984)
 * [3 years ago](https://wordpress.org/support/topic/error-plugin-23/)
 * Hi all,
 * This morning I had a problem on my website that was in down until I deactivated
   klarna pugin.
 * this is the server log
 *     ```wp-block-code
       [01-Jun-2023 07:23:23 UTC] PHP Fatal error: Uncaught Error: Class 'KP_Api' not found in /var/app/current/wp-content/plugins/klarna-payments-for-woocommerce/klarna-payments-for-woocommerce.php:141Stack trace:
   
       0 /var/app/current/wp-includes/class-wp-hook.php(308): WC_Klarna_Payments->init('')
   
       1 /var/app/current/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
   
       2 /var/app/current/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       3 /var/app/current/wp-settings.php(486): do_action('plugins_loaded')
   
       4 /var/app/current/wp-config.php(32): require_once('/var/app/curren…')
   
       5 /var/app/current/wp-load.php(50): require_once('/var/app/curren…')
   
       6 /var/app/current/wp-admin/admin.php(34): require_once('/var/app/curren…')
   
       7 /var/app/current/wp-admin/index.php(10): require_once('/var/app/curren…')
   
       8 {main}
   
       thrown in /var/app/current/wp-content/plugins/klarna-payments-for-woocommerce/klarna-payments-for-woocommerce.php on line 141
       ```
   
 * Can you help me?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * (@boozebrorsan)
 * [3 years ago](https://wordpress.org/support/topic/error-plugin-23/#post-16785524)
 * Hi!
 * There is a thread around this topic already:
   [https://wordpress.org/support/topic/class-kp_api-not-found/](https://wordpress.org/support/topic/class-kp_api-not-found/)
   When updating the plugin it seems that something in the update process in WordPress
   did not work as expected so all files did not get installed properly.
 * The easiest fix is to delete the plugin and re-install it again from wordpress.
   org. This seems to have worked perfect in these cases. 
 * [https://docs.krokedil.com/klarna-payments-for-woocommerce/troubleshooting/faq/#uncaught-error-class-kp-api-not-found](https://docs.krokedil.com/klarna-payments-for-woocommerce/troubleshooting/faq/#uncaught-error-class-kp-api-not-found)
    -  This reply was modified 3 years ago by [Andreas - Krokedil](https://wordpress.org/support/users/boozebrorsan/).
 *  Thread Starter [mimmo1984](https://wordpress.org/support/users/mimmo1984/)
 * (@mimmo1984)
 * [3 years ago](https://wordpress.org/support/topic/error-plugin-23/#post-16786240)
 * Hi,
 * I read the thread, but I updated the plugin days ago and this morning I had the
   problem. Is it possible?
 * thank you in advance
 *  Plugin Support [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * (@boozebrorsan)
 * [3 years ago](https://wordpress.org/support/topic/error-plugin-23/#post-16786259)
 * Hi [@mimmo1984](https://wordpress.org/support/users/mimmo1984/)
 * Have you had any orders since you made the update? It should have not worked 
   at all after you did the update so that sounds strange.
 * Can you try and do those steps to install a new plugin, if it still is problems
   let us know and we’ll have a look at it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error plugin’ is closed to new replies.

 * ![](https://ps.w.org/klarna-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3174333)
 * [Klarna for WooCommerce](https://wordpress.org/plugins/klarna-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/klarna-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/error-plugin-23/#post-16786259)
 * Status: resolved