Title: Missing style dependency causing errors in wp-admin
Last modified: October 21, 2024

---

# Missing style dependency causing errors in wp-admin

 *  Resolved [joshfg](https://wordpress.org/support/users/joshfg/)
 * (@joshfg)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/)
 * Hi there, in the plugin file ‘search-exclude\lib\controllers\class-gutenberg.
   php’ on line 31, there’s a dependency called ‘search-exclude-components’ for 
   a style being registered, but it’s causing an error in wp-admin because the dependency
   is missing.

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

 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18091461)
 * [@joshfg](https://wordpress.org/support/users/joshfg/)
 * Hello mate,
 * Please share some screenshots to describe your issue.
   You can use this tool to
   copy/paste your screenshots here easily: [https://snipboard.io](https://snipboard.io/)
   Best regards, Quadlayers Support Team.
 *  Thread Starter [joshfg](https://wordpress.org/support/users/joshfg/)
 * (@joshfg)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18092084)
 * Hi there, it shows up when debugging with the Query Monitor plugin, here’s a 
   screenshot of another missing dependency: [https://snipboard.io/HaBbdr.jpg](https://snipboard.io/HaBbdr.jpg)
   I don’t think it’s critical, obviously, but if it’s requiring a couple dependencies
   that doesn’t exist, that’s not ideal.
 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18096218)
 * [@joshfg](https://wordpress.org/support/users/joshfg/)
 * Hi mate, thanks for updating your ticket.
 * Could you please let us know which versions of the plugin and WordPress you are
   currently using?
 * Regards.
 *  Thread Starter [joshfg](https://wordpress.org/support/users/joshfg/)
 * (@joshfg)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18101056)
 * Still doing it with plugin version 2.1.7 with WP version 6.6.2
 *  [vincepettit](https://wordpress.org/support/users/vincepettit/)
 * (@vincepettit)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18102605)
 * I’m getting the same issue.
 * **Source: **wp-content/plugins/search-exclude/build/gutenberg/css/style.css
   **
   Dependencies:** search-exclude-components (missing), wp-components**Plugin Version:**
   2.1.7**WP Version:** 6.6.2
 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18121317)
 * [@vincepettit](https://wordpress.org/support/users/vincepettit/) [@joshfg](https://wordpress.org/support/users/joshfg/)
   Hi guys, could you please update to the new version and check if the issue persists?
   
   Best regards.
 *  Thread Starter [joshfg](https://wordpress.org/support/users/joshfg/)
 * (@joshfg)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18121374)
 * As of right now, plugin version: 2.1.7 IS the latest version available to me 
   and still has the issue.
 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18136283)
 * [@joshfg](https://wordpress.org/support/users/joshfg/) Hi mate
   We’ve received
   reports from other users indicating that the latest version resolves this issue.
   Could you please send us a direct message on our Facebook fan page so we can 
   take a closer look at your specific case? [https://www.facebook.com/quadlayers](https://www.facebook.com/quadlayers)
   Best regards, Quadlayers Support Team.
 *  Thread Starter [joshfg](https://wordpress.org/support/users/joshfg/)
 * (@joshfg)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18136704)
 * I have Search Exclude installed on 3 live websites and 1 development site, on
   two different servers. They all also have WooCommerce and use the Oxygen Builder,
   but the issue persists when all plugins except Search Exclude and Query Monitor
   are deactivated and it’s switched to a default theme. They all use PHP 8.1 but
   the same issue was present when the servers were on PHP 7.4. The issue is also
   present on WordPress 6.6.2 and still when upgrading to WordPress 6.7
 * As mentioned in my original post in this thread, “_the plugin file ‘search-exclude\
   lib\controllers\class-gutenberg.php’ on line 31, there’s a dependency called ‘
   search-exclude-components’ for a style being registered_“. I opened and searched
   every other file in your plugin and could not locate any other reference to _‘
   search-exclude-components’_, hence the problem with making it a dependency but
   not adding it in anywhere else. As seen in the screenshot here, ([https://snipboard.io/pS7TXc.jpg](https://snipboard.io/pS7TXc.jpg)),
   if I remove the highlighted line of code, the problem is resolved, (until the
   next plugin update).
 * ![](https://i0.wp.com/s3.amazonaws.com/i.snag.gy/pS7TXc.jpg?ssl=1)
 *  [Pt](https://wordpress.org/support/users/bncpeter/)
 * (@bncpeter)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18147579)
 * I am experiencing this too. I just downloaded a fresh copy of 2.1.7 from the 
   WordPress plugin page and it is indeed missing a /css/ folder under /build/gutenberg/.
 *  Thread Starter [joshfg](https://wordpress.org/support/users/joshfg/)
 * (@joshfg)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18162617)
 * Just to confirm, this issue seems to have just now been resolved in version 2.1.8
   you released today.
 * Thanks!

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

The topic ‘Missing style dependency causing errors in wp-admin’ is closed to new
replies.

 * ![](https://ps.w.org/search-exclude/assets/icon-256x256.png?rev=2916925)
 * [Search Exclude](https://wordpress.org/plugins/search-exclude/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-exclude/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-exclude/)
 * [Active Topics](https://wordpress.org/support/plugin/search-exclude/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-exclude/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-exclude/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [joshfg](https://wordpress.org/support/users/joshfg/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/missing-style-dependency-causing-errors-in-wp-admin/#post-18162617)
 * Status: resolved