Having some difficulty running database updates via drush after updating modules in the codebase. This is the error that is being reported:
Error: Call to undefined function batch_get() in /root/.config/composer/vendor/drush/drush/commands/core/drupal/batch.inc on line 92 #0 /root/.config/composer/vendor/drush/drush/includes/batch.inc(98): _drush_batch_command('11459')
This is only happening on our production environment, our staging environment is identical and works without issue.
We are able to run the updates via update.php; but we are planning to migrate to the new core media module in the coming days, and those updates bring the site down until database updates are run so update.php will not be an option.
The database is located on another server, but we have no problem connecting to that server via tools such as drush sql-cli.
We have also tracked down the 'undefined' method in question and verified it to be in existence.
Many thanks in advance for any help.