- Issue created by @damien_vancouver
When Search API has configured indexes with the Database backend, a Fatal error is thrown.
Uncaught PHP Exception Error: "Call to undefined method Drupal\\search_api_db\\Plugin\\search_api\\backend\\Database::getSolrConnector()" at /var/www/modules/contrib/solr_health_check/src/Controller/HealthCheckController.php line 73
It's confusing this error is thrown at all, as the code in question is inside a try ... catch (\Exception $e)
block.
Adding a method_exists() check at that line stops the error:
if (method_exists($backend,'getSolrConnector')) {
See attached patch which adds this change.
Active
1.1
Code