Title: Missing Dependencies
Last modified: November 26, 2023

---

# Missing Dependencies

 *  Resolved [balvan64](https://wordpress.org/support/users/balvan64/)
 * (@balvan64)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/missing-dependencies-31/)
 * **Hello,**
 * We are getting this alert:
   Missing Dependencieswc-admin-order-meta-boxes (missing)
 *  [https://ibb.co/Q8LDDmS](https://ibb.co/Q8LDDmS)
 * How can this be resolved?
 * **Thank you**

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

 *  Plugin Author [camper2020](https://wordpress.org/support/users/camper2020/)
 * (@camper2020)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/missing-dependencies-31/#post-17230550)
 * Hi there, thanks so much for using our plugin and for reaching out to us, we 
   hope the plugin is providing value for you!
 * Thanks also for the screenshot and information, we have investigated and this
   is a warning being shown by the **Query Monitor** plugin with regard to our plugin
   JavaScript not loading because of a missing dependency. This is by **design**
   in that we perform this dependency check to ensure that we _only_ load the plugin
   JavaScript on the order edit page and not every admin page to avoid conflicts
   and performance degradation by loading an extra script on your site where it 
   is not needed. **Query Monitor** is alerting you to this, but on the **Edit Order**
   page, the error will not show as the dependency is loaded on this page and therefore
   our script will _only_ load there as well as per this screenshot: [https://ibb.co/JcQW50Y](https://ibb.co/JcQW50Y)
 * I trust the above answers your query, but if you need any more information or
   pick up any other issues, please let us know!
 *  Thread Starter [balvan64](https://wordpress.org/support/users/balvan64/)
 * (@balvan64)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/missing-dependencies-31/#post-17230635)
 * **Thank you for your reply.**
 * I’m not sure I understand your answer and the logic behind the practice.
   You’re
   saying that you are checking if these scripts that should only be loaded on the
   edit order interface are loaded, in order to insure they are not loaded, did 
   I get understand that correctly?
    - If you won’t load the scripts they won’t load, there is no need to check as
      this is under your control. if you do not wish to load your scripts you can
      not load them. What is the check for?
    - Why is your plugin working or is loaded anywhere that is not the order edit
      interface? why not disable it completely and not just the JS?
    - No other plugin uses this kind of practice, of calling scripts that shouldn’t
      be loaded to see that they are not loaded, and generate an error along the
      way. 
      Why use such a practice? If every plugin would work in that fashion 
      we would see dozens of errors all the times everywhere.
    - Even if your check does result in the scripts being already loaded, what would
      you do? it has already happened, you cannot unload them then.
      What does the
      check serve?
 * How can this practice be amended, so that using your plugin does not require 
   these errors anywhere that in not the only place where your plugin should be 
   loaded?
 * Now everywhere on the back-end we are getting this red alert: [https://ibb.co/ngpx0wF](https://ibb.co/ngpx0wF)
   
   Now we have to check what that is each time just to to find out it was your plugin
   again. We do not want this alert appearing everywhere now, and it shouldn’t be
   normalized.
 * **Thank you**
    -  This reply was modified 2 years, 6 months ago by [balvan64](https://wordpress.org/support/users/balvan64/).
    -  This reply was modified 2 years, 6 months ago by [balvan64](https://wordpress.org/support/users/balvan64/).
    -  This reply was modified 2 years, 6 months ago by [balvan64](https://wordpress.org/support/users/balvan64/).
 *  Plugin Author [camper2020](https://wordpress.org/support/users/camper2020/)
 * (@camper2020)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/missing-dependencies-31/#post-17230705)
 * Hi there, thank you for your feedback and additional queries and information.
   We realise what was not clear in our previous answer is that the dependency in
   question (`wc-admin-order-meta-boxes`) is a WooCommerce script and not a dependency
   of our own. We have this dependency check in place as we use functionality from
   this script in our own script and it also serves as a method to check for the
   when we should load our script.
 * While I cannot speak for other plugin implementations, there are some functions
   within plugins that need to run at different stages of the WordPress loading 
   process, however we **completely agree **that where possible, functionality should
   be restricted to where the functionality is required, which is why these checks
   are in place.
 * That being said, we also **completely agree** that no one wants to see an error
   message anywhere and particularly in this case where it is causing an alert in**
   Query Monitor** on every admin page!
 * With this additional information, we find your concern **completely valid** as
   we now see how this is causing disruption for you (and possibly other users as
   well), we are prioritising a fix for this, so please look out for an update very
   shortly!
 * Thank you again for raising this issue with us and for the additional information,
   we want this plugin to add value and not distract in any way from its intended
   purpose. We are keeping this thread open for now while we work on the fix and
   will let you know as soon as the update is released with this fix in place. Please
   let us know if you have any queries or pick up any other problems as well!
 *  Thread Starter [balvan64](https://wordpress.org/support/users/balvan64/)
 * (@balvan64)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/missing-dependencies-31/#post-17232184)
 * Thank you so much, you’ve earned best support award for 2023 from me. I’ll look
   forward to the new update.
 *  Plugin Author [camper2020](https://wordpress.org/support/users/camper2020/)
 * (@camper2020)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/missing-dependencies-31/#post-17234756)
 * Hi thanks so much for your kind words, I wanted to let you know that we have 
   released version **1.0.13** of our plugin which fixes this missing dependency
   issue and ensures the script only loads where it needs to. You can update the
   plugin from your Admin dashboard. Thank you again for letting us know about this
   issue and please let us know if you find any other issues or have any queries!
 *  Thread Starter [balvan64](https://wordpress.org/support/users/balvan64/)
 * (@balvan64)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/missing-dependencies-31/#post-17236713)
 * Wonderful, thank you!

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

The topic ‘Missing Dependencies’ is closed to new replies.

 * ![](https://ps.w.org/rd-wc-order-modifier/assets/icon-256x256.png?rev=3030659)
 * [RD Order Modifier for WooCommerce](https://wordpress.org/plugins/rd-wc-order-modifier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rd-wc-order-modifier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rd-wc-order-modifier/)
 * [Active Topics](https://wordpress.org/support/plugin/rd-wc-order-modifier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rd-wc-order-modifier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rd-wc-order-modifier/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [balvan64](https://wordpress.org/support/users/balvan64/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/missing-dependencies-31/#post-17236713)
 * Status: resolved