Title: error_code”:”READ_ONLY_ORDER
Last modified: April 16, 2020

---

# error_code”:”READ_ONLY_ORDER

 *  Resolved [stivenson2005](https://wordpress.org/support/users/stivenson2005/)
 * (@stivenson2005)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error_coderead_only_order/)
 * Hello,
 * I have an issue with the Klarna Checkout plugin where if I update it to the latest
   version it gets an error upon checkout.
 * {“error_code”:”READ_ONLY_ORDER”,”error_messages”:[“Resource is read-only”],”correlation_id”:”
   8e95a5c4-8fd8-40fd-ba6e-56130a5054c6″,”service_version”:”1.0.20200414071037″}
   Resource is read-only
 * If i roll back to the version 1.11.7 it works just fine, but the problem is today
   i got an email from Klarna stating i have to update to the latest version or 
   else they will have to stop my Klarna services for my store in 48h.
 * So i updated to the latest Klarna checkout plugin and still receiving the same
   issue. Any suggestions is appreciated.
 * Note that I run the latest WP and WC updates and the theme aswell which is Astra
   and on another website i run Storefront which both facing the same exact issue.

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

 *  [sirrahikkala](https://wordpress.org/support/users/sirrahikkala/)
 * (@sirrahikkala)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-12708903)
 * [@stivenson2005](https://wordpress.org/support/users/stivenson2005/) [@klarna](https://wordpress.org/support/users/klarna/)
   Is that error related to some specific versions?
 *  [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * (@klarna)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-12709469)
 * Hi [@sirrahikkala](https://wordpress.org/support/users/sirrahikkala/) –
    Yes,
   the READ_ONLY_ORDER error is more applicable for some Woo KCO plugin versions
   than others. (For reference, see documentation for Woo KCO 2.x version at [https://docs.krokedil.com/article/329-klarna-checkout-checkout-flow-rewrite](https://docs.krokedil.com/article/329-klarna-checkout-checkout-flow-rewrite))
 * That said, please also reference this comment from [https://wordpress.org/support/topic/error-code-read-only/#post-12689535](https://wordpress.org/support/topic/error-code-read-only/#post-12689535)
 * as hopefully that might help you resolve the error for your store still with 
   the latest Woo KCO 2.x plugin version.
 *  [Ruman](https://wordpress.org/support/users/rumaneee/)
 * (@rumaneee)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-12940288)
 * I am facing the same error:
 *     ```
       Accept: */*
       Klarna-Correlation-Id: 2b645492-57e9-4d11-b376-5eb6d5bfcf1d
       User-Agent: WordPress/5.4; https://siteurl.com - WooCommerce: 4.0.1 - KCO:2.0.12 - PHP Version: 7.0.29 - Krokedil
       Host: api.playground.klarna.com
       Accept-Encoding: deflate, gzip
       Content-Length: 1904
       Content-Type: application/json
       ```
   
 * Response Body:
 *     ```
       {
         "error_code": "READ_ONLY_ORDER",
         "error_messages": [
           "Resource is read-only"
         ],
         "correlation_id": "2b645492-57e9-4d11-b376-5eb6d5bfcf1d",
         "service_version": "1.0.20200603144343"
       }
       ```
   
 * Tried several ways like back-n-forth of the plugin : `Klarna Checkout for WooCommerce`
   still can’t resolve.
 * Any idea?
 *  [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * (@klarna)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-12940484)
 * Hi [@rumaneee](https://wordpress.org/support/users/rumaneee/) – can you please
   retest using the most recent version of the KCO plugin (v2.0.14 instead of 2.0.12)
   to see if that might resolve the issue? [https://github.com/krokedil/klarna-checkout-for-woocommerce/releases/tag/2.0.14](https://github.com/krokedil/klarna-checkout-for-woocommerce/releases/tag/2.0.14)
 *  [Ruman](https://wordpress.org/support/users/rumaneee/)
 * (@rumaneee)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-12941630)
 * Hi [@klarna](https://wordpress.org/support/users/klarna/),
    As I said I also 
   tested KCO old version as well as with the latest version.
 *     ```
       Accept: */*
       Klarna-Correlation-Id: 6bf590db-bda5-45ad-b65e-bf5b1730d08b
       User-Agent: WordPress/5.4; https://***.com- WooCommerce: 4.0.1 - KCO:2.0.14 - PHP Version: 7.0.29 - Krokedil
       Host: api.playground.klarna.com
       Accept-Encoding: deflate, gzip
       Content-Length: 1864
       Content-Type: application/json
       ```
   
 * And here is the same response body:
 *     ```
       {
         "error_code": "READ_ONLY_ORDER",
         "error_messages": [
           "Resource is read-only"
         ],
         "correlation_id": "6bf590db-bda5-45ad-b65e-bf5b1730d08b",
         "service_version": "1.0.20200603144343"
       }
       ```
   
 *  [Ruman](https://wordpress.org/support/users/rumaneee/)
 * (@rumaneee)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-12942460)
 * After 30 hours of digging, I found that this problem persists only on the Nginx
   server not in the Apache2 server.
 * When I switched my server from Nginx to Apache2 then that error vanished and 
   everything working as I expected.
 * I hope someone can provide how to resolve this on the Nginx server.
 *  Plugin Contributor [Krokedil](https://wordpress.org/support/users/krokedil/)
 * (@krokedil)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-12997309)
 * Thanks for the information and followup on this [@rumaneee](https://wordpress.org/support/users/rumaneee/).
 * I hope this can be helpful for others. However, I don’t think this is a general
   Nginx issue. I think it might be a case of web server configuration problem. 
   We have other users running Nginx without any issues.
 *  [sarcastrobatics](https://wordpress.org/support/users/sarcastrobatics/)
 * (@sarcastrobatics)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-13232360)
 * Hi,
 * some of our client’s clients have reported this issue. Our client has been in
   contact with Klarna directly, but they could not offer much help.
    - WC v. 4.3.1
    - KCO v. 2.1.3
 * When testing for myself, I did not have an issue with an admin account, but got
   the error when ordering as a guest in an incognito window.
 *     ```
       {
         "ERROR_CODE": "READ_ONLY_ORDER",
         "ERROR_MESSAGES": ["RESOURCE IS READ-ONLY"],
         "CORRELATION_ID": "86563E68-005E-4372-A9AD-DCAD97218F93",
         "SERVICE_VERSION": "1.0.20200806112428"
       }
       ```
   
 * I got success email notifications for both orders.
 *  Plugin Author [Niklas Högefjord](https://wordpress.org/support/users/niklashogefjord/)
 * (@niklashogefjord)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-13241885)
 * Hi [@sarcastrobatics](https://wordpress.org/support/users/sarcastrobatics/),
   
   Thanks for the correlation ID. We have followed up with Klarna about this. It
   looks like the last redirect, where the customer should be redirected to the 
   confirmation step (where the order is finalized in Woo) and then to the thank
   you page is note executed as it’s supposed to do.
 * In Klarna’s logs the http response for the redirect is 307. This indicates that
   everything was ok. But the READ_ONLY_ORDER indicates that the customer was not
   redirected to the thank you page, instead they reloaded the checkout page. With
   the order already payed for, Klarna shows an error message instead.
 * This is an issue that is tough to reproduce, but we will try to see if we can
   fixe this type of edge case.
 *  [vikfal](https://wordpress.org/support/users/vikfal/)
 * (@vikfal)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-13242616)
 * Hi/hej!
 * I’m having the same issue. From what i have gathered it might be because I am
   running test from a “staging.domain.com” kinda situation. When the checkout fails
   i get redirected to domain.com and the {“error_code”:”READ_ONLY_ORDER”,”error_messages”:….
   is displayed in orange.
 * Running Version 2.1.3 & 1.5.4
 * Could this be caused by the staging.domain.com redirected to domain.com after
   the initial purchase phase?
 * Thanks in Advance
 *  Plugin Author [Niklas Högefjord](https://wordpress.org/support/users/niklashogefjord/)
 * (@niklashogefjord)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-13243019)
 * Hi, yes, that might cause a behavior like this.
 *  [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * (@klarna)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-13345714)
 * To more gracefully handle this error, even though there can still be different
   root causes of the READ_ONLY_ORDER error, v2.1.4 of the Woo KCO plugin released
   today has an update to redirect customer to thankyou page if response to an update
   request returns a READ_ONLY message from Klarna.

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

The topic ‘error_code”:”READ_ONLY_ORDER’ is closed to new replies.

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

 * 12 replies
 * 9 participants
 * Last reply from: [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/error_coderead_only_order/#post-13345714)
 * Status: resolved