Title: Fatal error when running in wp-cli
Last modified: July 15, 2020

---

# Fatal error when running in wp-cli

 *  [rfair404](https://wordpress.org/support/users/rfair404/)
 * (@rfair404)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-running-in-wp-cli/)
 * When running any wp-cli command while this plugin is active, get a fatal error:
 *     ```
       [15-Jul-2020 22:14:00 UTC] PHP Fatal error:  Uncaught Error: Class 'Swiftype\SiteSearch\Wordpress\Search\Theme' not found in /app/public_html/custom-content/plugins/swiftype-search/swiftype-theme-functions.php:3
       Stack trace:
       #0 /app/public_html/custom-content/plugins/swiftype-search/swiftype.php(16): require_once()
       #1 /app/public_html/wp/wp-settings.php(371): include_once('/app/public_htm...')
       #2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): require('/app/public_htm...')
       #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress()
       #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
       #5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
       #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
       #7 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
       #8 /usr/local/bin/ in /app/public_html/custom-content/plugins/swiftype-search/swiftype-theme-functions.php on line 3
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-when-running-in-wp-cli%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Fatal error when running in wp-cli’ is closed to new replies.

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

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [rfair404](https://wordpress.org/support/users/rfair404/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-running-in-wp-cli/)
 * Status: not resolved