• Resolved Pacotole

    (@pacotole)


    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

    (@artbees)

    Hi @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

    (@pacotole)

    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

    (@artbees)

    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.