Title: Fatal error Class &#8220;WP_CLI&#8221; not found
Last modified: November 8, 2024

---

# Fatal error Class “WP_CLI” not found

 *  Resolved [drsdre](https://wordpress.org/support/users/drsdre/)
 * (@drsdre)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/fatal-error-class-wp_cli-not-found/)
 * Currrently all our sites are down (white screen of death) because of the following
   issue:
   `cache-warmer/src/class-extend-wp-cli.php:21 Class "WP_CLI" not found`
 * Version on server is 1.3.4. Update to 1.3.7 is available but doesn’t get installed
   through cron.
 * Forcing an upgrade to 1.3.7 through WP CLI has fixed the problem it seems.
 * May I suggest to add some automated tests in your plugin to prevent situations
   like this.
    -  This topic was modified 1 year, 5 months ago by [drsdre](https://wordpress.org/support/users/drsdre/).
    -  This topic was modified 1 year, 5 months ago by [drsdre](https://wordpress.org/support/users/drsdre/).

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

 *  Plugin Author [TMM Technology](https://wordpress.org/support/users/tmmtechnology/)
 * (@tmmtechnology)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/fatal-error-class-wp_cli-not-found/#post-18142047)
 * [@drsdre](https://wordpress.org/support/users/drsdre/) Yes, we changed our production
   publication procedure after this bug 🤦‍♂️. I extremely apologize for this issue…
   
   Duplicate of: [https://wordpress.org/support/topic/fatal-error-in-latest-update-of-plugin/](https://wordpress.org/support/topic/fatal-error-in-latest-update-of-plugin/)
 *  Plugin Author [TMM Technology](https://wordpress.org/support/users/tmmtechnology/)
 * (@tmmtechnology)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/fatal-error-class-wp_cli-not-found/#post-18142049)
 * I think WordPress could embed something like this also… Because any of the plugins
   can cause the whole site to go down, even if developer made a small typo and 
   forgot (ignored) to test.
   It shouldn’t happen for our plugins anymore though.

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

The topic ‘Fatal error Class “WP_CLI” not found’ is closed to new replies.

 * ![](https://ps.w.org/cache-warmer/assets/icon.svg?rev=2869611)
 * [Cache Warmer](https://wordpress.org/plugins/cache-warmer/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-warmer/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-warmer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-warmer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-warmer/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [TMM Technology](https://wordpress.org/support/users/tmmtechnology/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/fatal-error-class-wp_cli-not-found/#post-18142049)
 * Status: resolved