Title: Class &#8216;KP_Api&#8217; not found
Last modified: March 3, 2023

---

# Class ‘KP_Api’ not found

 *  Resolved [clarkedesign](https://wordpress.org/support/users/clarkedesign/)
 * (@clarkedesign)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/class-kp_api-not-found/)
 * **Fatal error**: Uncaught Error: Class ‘KP_Api’ not found in /wp-content/plugins/
   klarna-payments-for-woocommerce/klarna-payments-for-woocommerce.php:141
 * Just upgraded the plugin to v3.0.5 and we get this error
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fclass-kp_api-not-found%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [embercide](https://wordpress.org/support/users/embercide/)
 * (@embercide)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/class-kp_api-not-found/#post-16526379)
 * We were already on 3.0.5 for a few days before updating woocommerce to 7.4.0 (
   from 7.3.x) and immediately the site crashed with that same error.
 * To recover we had to rename the klarna plugin (couldn’t deactivate using wp cli,
   any attempt to would keep throwing that KP_API error), then rename it back and
   reactivate it
 *  Plugin Support [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * (@boozebrorsan)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/class-kp_api-not-found/#post-16527224)
 * Hi [@clarkedesign](https://wordpress.org/support/users/clarkedesign/) [@embercide](https://wordpress.org/support/users/embercide/)
 * Does it work if you rollback to the KP version 2.12.1?
   You can use the WP-rollback
   plugin to do this easily.[https://sv.wordpress.org/plugins/wp-rollback/](https://sv.wordpress.org/plugins/wp-rollback/)
 * Would it be possible to email us on our [support@krokedil.com](https://wordpress.org/support/topic/class-kp_api-not-found/support@krokedil.com?output_format=md)
   with logs from your store from when the problem happened as those should not 
   be posted here because of sensitive information. That way we can see if we can
   find what caused this?
 * The logs we would need can be found under WooCommerce->Status->Logs and then 
   grab the logs from Klarna Payments.
 * In the meantime I suggest that you rollback to the version it worked with earlier.
 *  Plugin Support [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * (@boozebrorsan)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/class-kp_api-not-found/#post-16579479)
 * Hi [@clarkedesign](https://wordpress.org/support/users/clarkedesign/) [@embercide](https://wordpress.org/support/users/embercide/)
 * We haven’t been able to re-create this scenario. It sounds like the update of
   the plugin didn’t complete correctly. Did you use the regular WP plugin update
   or manually installed it?
 * Is your site running now as it should?
 *  Plugin Support [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * (@boozebrorsan)
 * [3 years ago](https://wordpress.org/support/topic/class-kp_api-not-found/#post-16669466)
 * 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. 

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

The topic ‘Class ‘KP_Api’ not found’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/class-kp_api-not-found/#post-16669466)
 * Status: resolved