Title: Uncaught ReferenceError: admin_object is not defined
Last modified: July 26, 2024

---

# Uncaught ReferenceError: admin_object is not defined

 *  Resolved [rederijker](https://wordpress.org/support/users/rederijker/)
 * (@rederijker)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-admin_object-is-not-defined/)
 * 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 definedat 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](https://wordpress.org/support/users/priyankajagtap/)
 * (@priyankajagtap)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-admin_object-is-not-defined/#post-17930208)
 * Hi [@rederijker](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/rederijker/)
 * (@rederijker)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-admin_object-is-not-defined/#post-17934750)
 * Thank you! The new js file works with the last update?
 *  Plugin Author [priyankajagtap](https://wordpress.org/support/users/priyankajagtap/)
 * (@priyankajagtap)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-admin_object-is-not-defined/#post-17935989)
 * Hi [@rederijker](https://wordpress.org/support/users/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.
 *  [bcizej](https://wordpress.org/support/users/bcizej/)
 * (@bcizej)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-admin_object-is-not-defined/#post-17942248)
 * Hi [@priyankajagtap](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [bcizej](https://wordpress.org/support/users/bcizej/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-admin_object-is-not-defined/#post-17942248)
 * Status: resolved