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:
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.
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 havedefine('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.