Title: Missing dependencies
Last modified: November 9, 2022

---

# Missing dependencies

 *  Resolved [Ryan](https://wordpress.org/support/users/ryanlifex/)
 * (@ryanlifex)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/missing-dependencies-28/)
 * YITH Wishlist plugin is enabled and functioning on the site. However, when I 
   review frontend pages with the Query Monitor plugin also enabled, Query Monitor
   reports two missing dependencies, as follows:
    1. prettyPhoto, called by yith-woocommerce-wishlist/assets/js/jquery.yith-wcwl.
       min.js
    2. woocommerce_prettyPhoto_css, called by yith-woocommerce-wishlist/assets/css/
       style.css
 * Is this a plugin version conflict, a theme issue, or something else entirely?
   Thanks in advance!
 * WordPress 6.0.3
    Query Monitor 3.10.1 WooCommerce 7.1.0 YITH WooCommerce Wishlist
   3.14.0 PHP 7.4.32
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissing-dependencies-28%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/missing-dependencies-28/#post-16181450)
 * Hello Ryan,
    we hope you’re doing well!
 * This may be because our plugin uses dependencies only when needed, for performance
   optimization purposes, so you shouldn’t worry about the Query Monitor warning.
 * Anyway, you can try adding the following code in the **functions.php** file of
   your active theme:
 *     ```
       if( defined( 'YITH_WCWL' ) && ! function_exists( 'yith_wcwl_enqueue_back_required_assets' ) ) {
       		function yith_wcwl_enqueue_back_required_assets() {
                   $suffix  = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
       			$version = defined( 'WC_VERSION' ) ? WC_VERSION : '';
   
       			wp_enqueue_style( 'woocommerce_prettyPhoto_css', plugins_url( 'assets/css/prettyPhoto.css', WC_PLUGIN_FILE ), array(), $version );
       			wp_enqueue_script( 'prettyPhoto', plugins_url( 'assets/js/prettyPhoto/jquery.prettyPhoto' . $suffix . '.js', WC_PLUGIN_FILE ), array( 'jquery' ), '3.1.6' );
       			wp_enqueue_script( 'prettyPhoto-init', plugins_url( 'assets/js/prettyPhoto/jquery.prettyPhoto.init' . $suffix . '.js', WC_PLUGIN_FILE ), array( 'jquery' ), $version );
       		}
       }
       add_action( 'wp_enqueue_scripts', 'yith_wcwl_enqueue_back_required_assets', 9999 );
       ```
   
 * Check it out and tell us any news, please.
 * Have a nice day!
 *  Thread Starter [Ryan](https://wordpress.org/support/users/ryanlifex/)
 * (@ryanlifex)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/missing-dependencies-28/#post-16181510)
 * Thanks for your reply.
 * When I add that snippet to functions.php in the active theme, Query Monitor reports
   these missing handles on the front end:
    - prettyPhoto
    - prettyPhoto-init
    - woocommerce_prettyPhoto_css
 * I can ignore the warning if it does not cause issues with the site.
 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/missing-dependencies-28/#post-16189983)
 * Hello Ryan,
 * Then, you can remove the code that we have sent you. You can also not worry about
   this warning since it really does not affect your site or its performance.
 * If you have any other questions, feel free to contact us.
 * Have a nice day!
 *  Thread Starter [Ryan](https://wordpress.org/support/users/ryanlifex/)
 * (@ryanlifex)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/missing-dependencies-28/#post-16189991)
 * Done, thank you!

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

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

 * ![](https://ps.w.org/yith-woocommerce-wishlist/assets/icon-128x128.gif?rev=3129302)
 * [YITH WooCommerce Wishlist](https://wordpress.org/plugins/yith-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ryan](https://wordpress.org/support/users/ryanlifex/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/missing-dependencies-28/#post-16189991)
 * Status: resolved