Title: wp-cli fatal error
Last modified: February 19, 2021

---

# wp-cli fatal error

 *  Resolved [Pacotole](https://wordpress.org/support/users/pacotole/)
 * (@pacotole)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-cli-fatal-error/)
 * Plugin produces a fatal error with wp-cli:
 *     ```
       Fatal error: Uncaught Error: Class 'Growmatik\Rewrite_Rules_Manager' not found in /srv/www/example_com/current/web/app/plugins/marketing-automation-and-personalization/growmatik.php:24
       Stack trace:
       #0 /srv/www/example_com/current/web/wp/wp-settings.php(388): include_once()
       #1 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): require('/srv/www/joinch...')
       #2 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress()
       #3 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
       #4 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process()
       #5 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
       #6 phar:///usr/bin/wp/php/boot-phar.php(11): include('phar:///usr/bin...')
       #7 /usr/bin/wp(4): include('phar:///usr/bin...')
       #8 {main}
         thrown in /srv/www/example_com/current/web/app/plugins/marketing-automation-and-personalization/growmatik.php on line 24
       ```
   

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

 *  Plugin Author [artbees](https://wordpress.org/support/users/artbees/)
 * (@artbees)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-cli-fatal-error/#post-14075772)
 * Hi [@pacotole](https://wordpress.org/support/users/pacotole/); thanks for reaching
   out.
 * We were not able to reproduce the issue; Can you verify if uninstalling and re-
   installing the Growmatik plugin fixes it?
 * Otherwise please provide us with details to reproduce the error, including the
   exact wp-cli command that causes the error, and the version numbers for wp-cli(`
   wp --version`), Growmatik plugin and WordPress.
 *  Thread Starter [Pacotole](https://wordpress.org/support/users/pacotole/)
 * (@pacotole)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp-cli-fatal-error/#post-14105097)
 * Hi!
 * I found a solution adding `__DIR__` to autoload require_once:
 * `require_once __DIR__ . '/vendor/autoload.php';`
 * It could be that relative ‘vendor/autoload.php’ it’s already loaded by other 
   plugin and it’s skipped 🤔
 * For more info: Reinstall not solve the problem and our wp version is `WP-CLI 
   2.4.0`. Our WordPress installation is via Composer based on stack Trellis + Bedrock.
   The problem is in almost all the wp-cli commands.
 *  Plugin Author [artbees](https://wordpress.org/support/users/artbees/)
 * (@artbees)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-fatal-error/#post-14222851)
 * Thanks for the information.
 * Based on your feedback we fixed this issue (and more) in our latest release, 
   so you should no longer need the mentioned modification when you update.
 * Please feel free to contact us if any other questions arise. Have a good day.

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

The topic ‘wp-cli fatal error’ is closed to new replies.

 * ![](https://ps.w.org/marketing-automation-and-personalization/assets/icon-256x256.
   png?rev=3115378)
 * [Convesio Convert – WooCommerce Email Marketing Automation with Website Personalization, Popups and Forms](https://wordpress.org/plugins/marketing-automation-and-personalization/)
 * [Support Threads](https://wordpress.org/support/plugin/marketing-automation-and-personalization/)
 * [Active Topics](https://wordpress.org/support/plugin/marketing-automation-and-personalization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/marketing-automation-and-personalization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/marketing-automation-and-personalization/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [artbees](https://wordpress.org/support/users/artbees/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-fatal-error/#post-14222851)
 * Status: resolved