• 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 https://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

    (@storeapps)

    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

    (@ljalg)

    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

    (@ljalg)

    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

    (@storeapps)

    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

    (@ljalg)

    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 4 years, 5 months ago by ljalg.
    Thread Starter ljalg

    (@ljalg)

    I’d be happy to give @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

    (@jdembowski)

    Forum Moderator and Brute Squad

    @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.