Title: WSoD REST problem
Last modified: June 25, 2025

---

# WSoD REST problem

 *  Resolved [LawrenceMa11nsn](https://wordpress.org/support/users/awrencema11nsn/)
 * (@awrencema11nsn)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/wsod-rest-problem/)
 * a few weeks back our site stopped allowing the editing of Products in Woo returning
   just a white screen after a brief second long preview of the product edit screen.
   the logs point to Error 401, and to resolve this I have created REST API keys,
   in Woo (I feel like I am missing something and that these keys should be taken
   and entered somewhere but nothing I’ve seen has told me about this.) Even Installing
   Woo’s Legacy REST plugin has no effect on my problem.
    -  This topic was modified 11 months, 3 weeks ago by [LawrenceMa11nsn](https://wordpress.org/support/users/awrencema11nsn/).
      Reason: typo, add tags

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

 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/wsod-rest-problem/#post-18527757)
 * Hi there,
 * Thanks for reaching out! To help investigate this issue further, could you please
   provide the following details:
    1. **A screenshot of the error message** (or the white screen behavior) you see
       when trying to edit a product — that will give us more context.
    2. Are you currently using the **Classic Product Editor** or the **new Beta Product
       Editor** introduced in recent WooCommerce versions?
 * Also, I’d like to understand your site properly. Please share with us the necessary
   information below for us to investigate the issue further:
    - **System Status Report** which you can find via WooCommerce > Status
    - **Fatal error logs** (if any) under WooCommerce > Status > Logs.
 * Please use [https://pastebin.com/](https://pastebin.com/) or [https://gist.github.com/](https://gist.github.com/)
   and share a link to that paste in reply here. Once we have more information, 
   we’ll be able to assist you further.
 *  Thread Starter [LawrenceMa11nsn](https://wordpress.org/support/users/awrencema11nsn/)
 * (@awrencema11nsn)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/wsod-rest-problem/#post-18527802)
 * here is the requested information:
 * [https://gist.github.com/LawrenceMallnsn/b238a713a135a900d30b61cce84b6e9e](https://gist.github.com/LawrenceMallnsn/b238a713a135a900d30b61cce84b6e9e)
 *  [Mahfuzur Rahman](https://wordpress.org/support/users/mahfuzurwp/)
 * (@mahfuzurwp)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/wsod-rest-problem/#post-18527942)
 * Hi [@awrencema11nsn](https://wordpress.org/support/users/awrencema11nsn/),
 * Thank you for sharing the system status report. Could you also please share a
   screenshot of the issue and fetal error logs as requested earlier?
 * Thank you.
 *  Thread Starter [LawrenceMa11nsn](https://wordpress.org/support/users/awrencema11nsn/)
 * (@awrencema11nsn)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/wsod-rest-problem/#post-18528128)
 * ![](https://i0.wp.com/www.somethingwiccan.co.uk/other/Screenshot%20from%202025-
   06-24%2022-13-25.png?ssl=1)
 * This is what I get from wordpress as far as errors go when trying to edit a product,
   I don’t think that they are the cause, just a result of the error. I had to be
   very quick on the “Print Screen” button to catch that as it goes blank immediately.
   Since my last posting I have acquired a fatal error, attached
 * ![](https://i0.wp.com/www.somethingwiccan.co.uk/other/Screenshot%20from%202025-
   06-25%2015-47-49.png?ssl=1)
 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/wsod-rest-problem/#post-18529377)
 * Hi there!
 * Thank you for sharing the screenshot of the error log.
 * After reviewing the errors, I can confirm that none of them appear to be directly
   related to WooCommerce. Instead, the notices are related to translation and deprecated
   code usage from the following plugins:
    - **Better Robots.txt – Index, Rank & SEO Booster**
    - **Five Star Business Profile and Schema**
    - **Cart Recovery for WordPress**
 * Additionally, the **fatal error** is coming from your theme **`envo-ecommerce`**,
   which is trying to call the `get_cart_contents_count()` function on a `null` 
   object. This function should be called on a valid `WC_Cart` object (e.g., `WC()-
   >cart->get_cart_contents_count()`), but it seems `WC()->cart` is not yet initialized
   when the theme tries to use it.
 * To troubleshoot this further, I recommend running a conflict test:
    1. **Deactivate all plugins except WooCommerce.**
    2. **Switch to a default theme** like **Twenty Twenty-Four or Twenty Twenty-Five**.
    3. Check if the issue persists.
 * To do this safely without affecting your live site, you can create a staging 
   site using the following plugin:
 * 🔗 [WP Staging – Backup Cloning Migration](https://wordpress.org/plugins/wp-staging/)
 * Let me know how it goes
 *  Plugin Support [Feten L. a11n](https://wordpress.org/support/users/fetenlakhal/)
 * (@fetenlakhal)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/wsod-rest-problem/#post-18551013)
 * Hi there,
 * As we haven’t had any updates, I’ll assume this is resolved and close the thread.
   Feel free to reconnect anytime.
 * Apart from this, if you’re happy with our plugin and the support you’ve received,
   we’d really appreciate a review: [https://wordpress.org/support/plugin/woocommerce/reviews/#new-post](https://wordpress.org/support/plugin/woocommerce/reviews/#new-post)

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

The topic ‘WSoD REST problem’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 6 replies
 * 4 participants
 * Last reply from: [Feten L. a11n](https://wordpress.org/support/users/fetenlakhal/)
 * Last activity: [11 months, 1 week ago](https://wordpress.org/support/topic/wsod-rest-problem/#post-18551013)
 * Status: resolved