Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Errror: wp solr commit #615

Open
nickmaine opened this issue Sep 13, 2023 · 0 comments
Open

Fatal Errror: wp solr commit #615

nickmaine opened this issue Sep 13, 2023 · 0 comments

Comments

@nickmaine
Copy link

When I run terminus remote:wp my-site.env solr commit on my sites I get a fatal error, which I'll post below. I have define('SOLRPOWER_DISABLE_AUTOCOMMIT', false); for dev and test and not live as recommended. The command produces the fatal error in all environments.

WP: 6.2.1
Solr Power 2.5.2

Fatal error: Uncaught Error: Call to undefined method SolrPower_Api::commit_index() in /code/wp-content/plugins/solr-power/includes/class-solrpower-cli.php:262
Stack trace:
#0 [internal function]: SolrPower_CLI->commit(Array, Array)
#1 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}(Array, Array)
#3 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func(Object(Closure), Array, Array)
#4 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(431): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#5 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(454): WP_CLI\Runner->run_command(Array, Array)
#6 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1269): WP_CLI\Runner->run_command_and_exit()
#7 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#8 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#9 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#10 phar:///opt/pantheon/wpcli/wp-cli-2.8.1.phar/php/boot-phar.php(20): include('phar:///opt/pan...')
#11 /opt/pantheon/wpcli/wp-cli-2.8.1.phar(4): include('phar:///opt/pan...')
#12 {main}
thrown in /code/wp-content/plugins/solr-power/includes/class-solrpower-cli.php on line 262
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant