• Resolved icolance

    (@icolance)


    Hello, I am having an issue with WooCommerce Shipping & Tax, specifically the shipping label creation process.

    When a new order comes in, I click on the “Create shipping label” button, and the modal comes up exactly as it should. The origin address is already verified, but the destination address has a verification recommendation (suggessted address).

    I click “Use suggested address”, and the modal just disappears. When the modal disappears, errors appear in the Chrome console, I’ve pasted it below.

    I have also tried:
    – Plugin/theme conflict test
    – Ensuring all plugins up-to-date
    – Using in different browsers (Firefox/Edge)

    Any help would be greatly appreciated!

    Console log:

    woocommerce-services-1.25.17.js:1 TypeError: Cannot read property 'not_selected' of null
        at 099e744625fd2e20a515.min.js:1
        at woocommerce-services-1.25.17.js:1
        at woocommerce-services-1.25.17.js:1
        at Gr (woocommerce-services-1.25.17.js:1)
        at hr.mapValues (woocommerce-services-1.25.17.js:1)
        at me (099e744625fd2e20a515.min.js:1)
        at ge (099e744625fd2e20a515.min.js:1)
        at Jo (woocommerce-services-1.25.17.js:1)
        at gu (woocommerce-services-1.25.17.js:1)
        at gs (woocommerce-services-1.25.17.js:1)
    ru @ woocommerce-services-1.25.17.js:1
    n.callback @ woocommerce-services-1.25.17.js:1
    ho @ woocommerce-services-1.25.17.js:1
    su @ woocommerce-services-1.25.17.js:1
    (anonymous) @ woocommerce-services-1.25.17.js:1
    t.unstable_runWithPriority @ woocommerce-services-1.25.17.js:1
    Yi @ woocommerce-services-1.25.17.js:1
    ws @ woocommerce-services-1.25.17.js:1
    cs @ woocommerce-services-1.25.17.js:1
    (anonymous) @ woocommerce-services-1.25.17.js:1
    t.unstable_runWithPriority @ woocommerce-services-1.25.17.js:1
    Yi @ woocommerce-services-1.25.17.js:1
    Gi @ woocommerce-services-1.25.17.js:1
    Vi @ woocommerce-services-1.25.17.js:1
    R @ woocommerce-services-1.25.17.js:1
    (anonymous) @ woocommerce-services-1.25.17.js:1
    woocommerce-services-1.25.17.js:1 Uncaught TypeError: Cannot read property 'not_selected' of null
        at 099e744625fd2e20a515.min.js:1
        at woocommerce-services-1.25.17.js:1
        at woocommerce-services-1.25.17.js:1
        at Gr (woocommerce-services-1.25.17.js:1)
        at hr.mapValues (woocommerce-services-1.25.17.js:1)
        at me (099e744625fd2e20a515.min.js:1)
        at ge (099e744625fd2e20a515.min.js:1)
        at Jo (woocommerce-services-1.25.17.js:1)
        at gu (woocommerce-services-1.25.17.js:1)
        at gs (woocommerce-services-1.25.17.js:1)
Viewing 6 replies - 1 through 6 (of 6 total)
  • I tried a super quick test and couldn’t get the same problem to happen (video: https://cloudup.com/cPhlpNSq528).

    It’s strange that the error from your console log says, “Uncaught TypeError: Cannot read property ‘not_selected’ of null” if you did indeed select the suggested address.

    When you were testing, was the suggested address definitely selected similar to what you can see in this screenshot from my test? https://cldup.com/Z0DnjCymWJ.png

    If it was, the only thing I can really think of right now would be to try toggling the selection—meaning select the Address entered and then the Suggested address again to try to get that selection to be seen. Also make sure any selections on the previous tab are correct. If that doesn’t help then hopefully the plugin developers can have a look to see if they can spot anything I missed. It’s really cool that you included the console log btw!

    Oh, one more thought if that above suggestion doesn’t help, do you have any browser extensions or add-ons installed by chance? I saw that you did test in Firefox too, so the chances are pretty slim that a browser extension or add-on is the culprit but it’s not outside the realm of possibility.

    Testing note: I used the following versions of things in my test: WordPress 5.8, Jetpack 9.1.1, WooCommerce 5.5.1, WooCommerce Shipping & Tax 1.25.17, Chrome 91.0.4472.114 on macOS 10.15.6.

    Hi @icolance,

    Could you please try the above suggestions and let us know if you need further assistance?

    If that doesn’t help, please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    We will be able to help you further there.

    Thread Starter icolance

    (@icolance)

    Hi @sukafia & @designsimply

    Thank you for your responses! Updating the site to WordPress 5.8 seems to have resolved the issue, but I’ll definitely use these suggestions in case it pops up again.

    Hmm, ?? a 5.8 update may or may not have been the thing that solved this—but I don’t want to go back and re-test in an older version unless I have to ?? thanks for the follow-up note!

    Insight Dezign

    (@insightdezign)

    I am experiencing this issue as well. If I ignore the address suggestion for the time being and try to click to expand the packaging section as well, the modal disappears. The button for “Create Shipping Label” in the order also disappears. I’m forced to reload the order to try again. Never any luck though.

    @insightdezign I had the same issue as you described and was able to solve it by refreshing the “WooCommerce Shipping & Tax Data” at /wp-admin/admin.php?page=wc-status&tab=connect.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shipping Label Creation Disappears’ is closed to new replies.