I took some time and looked into this, and the “missing dependencies” message you’re seeing isn’t exactly an error. The error seems occur due to timing of when scripts are checked and what’s loading at the exact moment of detection.
What’s happening is, in Event Espresso’s EE_Front_Controller class, the espresso_js script is enqueued via a method that fires on the wp_print_footer_scripts action hook.
When Query Monitor does its check for scripts on the wp_print_footer_scripts hook, it’s running on priority 10. That’s the same priority that EE uses to enqueue espresso_core.js.
If you wanted to do an experiment, you could go in to the EE plugin’s code and change the priority to 9.
i.e. add_action('wp_print_footer_scripts', array($this, 'enqueueScripts'), 10);
to add_action('wp_print_footer_scripts', array($this, 'enqueueScripts'), 9);
This will not fix anything, but you’ll no longer see a notification from the Query Monitor plugin.
Viewing 3 reply threads
The support post ‘Missing Dependencies’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.