Handling of default cluster for Elasticsearch Connector module.

Created on 2 May 2016, over 8 years ago
Updated 20 September 2024, 3 months ago

h2.Steps to Reproduce
- Install latest elasticsearch_connector-8.x-2.x-dev
- Install Search API 8.x-1.0-alpha14 from 2016-04-20.
- Install and run Elasticsearch 2.3.1
- Create elasticsearch cluster @ path /admin/config/search/elasticsearch-connector
- Create new Search API Server @ path /admin/config/search/search-api/add-server
- Observe browser error "The website encountered an unexpected error. Please try again later."
- Find a similar error in apache error log as to the following error.

Recoverable fatal error: Argument 1 passed to Drupal\\elasticsearch_connector\\ElasticSearch\\ClientManager::getClientForCluster() must be an instance of Drupal\\elasticsearch_connector\\Entity\\Cluster, null given, called in /home/vagrant/docroot/modules/contrib/elasticsearch_connector/src/Plugin/search_api/backend/SearchApiElasticsearchBackend.php on line 108 and defined in /home/vagrant/docroot/modules/contrib/elasticsearch_connector/src/ElasticSearch/ClientManager.php on line 60, referer: http://drupal8.mcdev/admin/config/search/search-api

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jasonawant New Orleans, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024