Fatal Error Declaration of Drupal\acquia_search\Plugin\SolrConnector\SearchApiSolrAcquiaConnector::setEventDispatcher()

Created on 20 June 2024, 5 months ago
Updated 21 June 2024, 5 months ago

(I was unable to select the current release version of Acquia Search, 3.1.11, in the issue metadata fields. (The only available values are dev versions.)

Problem/Motivation

After updating to the latest version Search API Solr (4.3.3 -> 4.3.4), I get this error:

PHP Fatal error: Declaration of Drupal\acquia_search\Plugin\SolrConnector\SearchApiSolrAcquiaConnector::setEventDispatcher(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $eventDispatcher): Drupal\search_api_solr\SolrConnectorInterface must be compatible with Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::setEventDispatcher(Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher): Drupal\search_api_solr\SolrConnectorInterface in /app/docroot/modules/contrib/acquia_search/src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php on line 136

Note: this occurs with the current version of Search API (1.34) as well as the previous (1.33).

Steps to reproduce

Update Search API Solr to its latest release version using Composer.

Proposed resolution

A similar issue has been reported and marked fixed in the Search API Solr queue [ https://www.drupal.org/project/search_api_solr/issues/3449292] β†’ β€” perhaps a similar approach could resolve the issue with Acquia Search.

πŸ› Bug report
Status

Closed: duplicate

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jmcintyre

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

Comments & Activities

Production build 0.71.5 2024