Support

Home Forums Event Espresso Premium Missing Dependencies

Missing Dependencies

Posted: March 4, 2021 at 6:14 pm

Viewing 3 reply threads


lifeforcearts

March 4, 2021 at 6:14 pm

Hello – is there a way to fix the error “Missing Dependencies” that you see in this screenshot?

https://lifeforcearts.org/wp-content/uploads/2021/03/event-espresso-error.png


Tony

  • Support Staff

March 5, 2021 at 4:29 pm

Hi there,

Thats an odd one as I can see jQuery is loading on the home page of your site.

Do you only get that error on the home page or is it shown on say a single event page? /events/{event-slug}


lifeforcearts

March 8, 2021 at 2:47 pm

the error appears on all non-event pages and blog posts. the error does not appear the event pages.

https://lifeforcearts.org/wp-content/uploads/2021/03/ee-error2.png


Josh

  • Support Staff

March 15, 2021 at 12:27 pm

Hi,

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.

Event Espresso