• Resolved rederijker

    (@rederijker)


    Hi,
    In the Orders section of the backend, I am encountering this JavaScript error, which refers to /wp-content/plugins/woocommerce-delivery-notes/assets/js/admin.js.

    Uncaught ReferenceError: admin_object is not defined
    at HTMLDocument. (admin.js?ver=5.0.2:175:3)
    at e (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,wp-hooks&ver=6.6.1:2:27028)
    at t (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,wp-hooks&ver=6.6.1:2:27330)

    Could you help me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @rederijker,

    Sorry for the delay in response to this.

    We tried to replicate this error at our end but were unable to replicate the same. However, based on the error message, our developer has created a fix for the issue.

    Below is the link to download the updated file “admin.js” of our plugin:
    https://www.dropbox.com/scl/fi/a0r0kyzwo5db4n88phxcb/admin.js?rlkey=myhqak1rl3bs1yhber40r3d0a&st=k236j36i&dl=0

    After downloading the file, you can replace it with the original file in the \wp-content\plugins\woocommerce-delivery-notes\assets/js/<HERE> via FTP.

    Kindly replace the same and let us know if uploading the above file fixes the error or not.

    Thread Starter rederijker

    (@rederijker)

    Thank you! The new js file works with the last update?

    Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @rederijker,

    I am glad to hear that updating the provided file resolved the issue you were experiencing with our plugin.

    If you have any more questions, please don’t hesitate to reach out.

    Hi @priyankajagtap

    We have the same issue on our site and we also get the following error on the orders list page:

    Uncaught TypeError: $(…).tooltip is not a function at HTMLDocument. (admin.js?ver=5.1.0:309:31)

    We are using WordPress 6.6.1 and Woocommerce 9.1.4. The plugin does not state that it is compatible with these versions so this is just some info for anyone else that has this error.

    I did some digging into the code and the dependency assets/js/bootstrap.min.js does not load. Looking further into it, is assets/js/admin.js even needed on the orders list page? The admin JS code doesn’t seem to be doing anything on the orders page.

    Fixing the code to add all proper dependencies makes the errors go away but removing assets/js/admin.js from loading there also works just fine.

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

The topic ‘Uncaught ReferenceError: admin_object is not defined’ is closed to new replies.