Title: Loading Failed
Last modified: July 24, 2020

---

# Loading Failed

 *  [ljalg](https://wordpress.org/support/users/ljalg/)
 * (@ljalg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/loading-failed-3/)
 * After migrating a development instance to live on a different host the Stock 
   Manager loads and then replies with a “Loading Failed” error instead of returning
   data on live, but is fine on dev. Upon inspection it looks like [http://site-url/wp-json/wc/v3/products?per_page=50](http://site-url/wp-json/wc/v3/products?per_page=50)
   returns nothing with a JS error of “TypeError: Cannot read property ‘split’ of
   null” in wpApiMiddleware.js:97. in looking at that file line 97 is within the
   catch statement and it’s trying to send the error.toString, but apparently the
   error is null. So it seems like a null error is getting thrown.
 * Any assistance in resolving this issue is appreciated.
 * ljalg

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

 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/loading-failed-3/#post-12831545)
 * Hi,
 * Could you please try to reproduce the same issue by having only `WooCommerce`&`
   WooCommerce Stock Manager` plugins active on your site to rule out any possible
   plugin conflict issue and then do let me know your views.
 * Also, if still, the issue persists, then could you please confirm the versions
   of `WordPress` & `WooCommerce` that you are using on your site.
 *  Thread Starter [ljalg](https://wordpress.org/support/users/ljalg/)
 * (@ljalg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/loading-failed-3/#post-12840533)
 * Plugin versions:
    WooCommerce – Version 4.1.0 WooCommerce Stock Manager – Version
   2.1.1 same versions as my dev environment but different host. Live is GoDaddy.
   Same plugins as dev and dev is working
 * “Advanced WooCommerce Dynamic Pricing & Discounts” not installed.
 * Thank for the input. Any other thoughts are appreciated.
 * ljalg
 *  Thread Starter [ljalg](https://wordpress.org/support/users/ljalg/)
 * (@ljalg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/loading-failed-3/#post-12846410)
 * Unfortunately it’s not the number of entries or oddity of an entry. I just migrated
   my live data back to dev and it’s working fine. I’m currently thinking it has
   something to do with a setting on the host.
 * ljalg
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/loading-failed-3/#post-12947705)
 * Hi,
 * Request you to kindly update to the latest version of the plugin [i.e. v2.2.0]
   which does consist of some important fixes and then do have a recheck and do 
   let me know your views.
 *  Thread Starter [ljalg](https://wordpress.org/support/users/ljalg/)
 * (@ljalg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/loading-failed-3/#post-12980952)
 * Updated to v2.2.0 and WooCommerce 4.2.0 and same issue. Maybe just add an if 
   statement before the tostring handling the situation where the error variable
   is null? or is that just fixing the symptom vs. the disease?
 * Unfortunately I’m not getting an email in this system when the plugin owner replies
   only when someone else does otherwise I would have updated sooner.
 * ljalg
    -  This reply was modified 5 years, 9 months ago by [ljalg](https://wordpress.org/support/users/ljalg/).
 *  Thread Starter [ljalg](https://wordpress.org/support/users/ljalg/)
 * (@ljalg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/loading-failed-3/#post-12980994)
 * I’d be happy to give [@storeapps](https://wordpress.org/support/users/storeapps/)
   a temporary admin login to the site for debugging purposes if you are willing
   to troubleshoot further. Please contact me at ljconsultinginc at gmail
 * ljalg
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [5 years, 8 months ago](https://wordpress.org/support/topic/loading-failed-3/#post-13165190)
 * [@storeapps](https://wordpress.org/support/users/storeapps/) I have archived 
   your reply. Do not offer anyone off forum contact again and you know why.
 * ljalg The developer risks getting banned and having their plugins removed from
   the WordPress repo if they accept an admin offer. They know this and know they
   need to stop offering or offering to accept.
 * Since this support topic is over a month old and has gone awry, I am closing 
   it from further replies.
 * If anyone needs support (without offering any back end access) then please feel
   free to start a new support topic.

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

The topic ‘Loading Failed’ is closed to new replies.

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

## Tags

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

 * 7 replies
 * 5 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/loading-failed-3/#post-13165190)
 * Status: not resolved