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 ago by LawrenceMa11nsn. Reason: typo, add tags
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
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:
Deactivate all plugins except WooCommerce.
Switch to a default theme like Twenty Twenty-Four or Twenty Twenty-Five.
Check if the issue persists.
To do this safely without affecting your live site, you can create a staging site using the following plugin: