I get the following fatal error on clicking Autocomplete tab in search index edit page.

PHP Fatal error: Class 'Drupal\\search_api_autocomplete\\Plugin\\search_api_autocomplete\\AutocompleteSuggester\\SuggesterPluginBase' not found in drupalroot/modules/contrib/search_api_autocomplete/src/Plugin/search_api_autocomplete/suggester/Server.php on line 25, , referer: http://drupal.local/admin/config/search/search-api/index/default_index/edit

There is a namespace error when i checked it. Will it work if i change the namespace to correct one or is there any other configuration to be done ?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zuhair_ak created an issue. See original summary.

zuhair_ak’s picture

Title: Fatal error on Autocomplete tab on Search index edit » Fatal error on clicking Autocomplete tab on Search index edit page
zuhair_ak’s picture

Status: Active » Needs review
FileSize
1.21 KB

I have added a patch with corrected namespace for SuggesterPluginBase in Server.php. I still have 'There are currently no searches known for this index.' in the page. I am completely new to this module so please correct me if there is any error.

myLies’s picture

also need to change the namespace in SuggesterPluginBase.php
see Drupal 8 Examples in https://www.drupal.org/node/1353118

dawehner’s picture

Note: Your patch is included in the most recent list of changes: https://www.drupal.org/node/2682949#comment-11483777

zuhair_ak’s picture

Didn't know development was going on in github. Should future issues be filed in github account?

dawehner’s picture

@zuhair_ak
Well, I made my port there, but please test out my most recent patch and in case this has issues, file new ones. I hope @drunkenmonkey will have time to commit these changes

drunken monkey’s picture

Status: Needs review » Closed (duplicate)

Committed in the other issue, so should be fixed. Otherwise, please open a new issue. Or, probably better, just comment in #2682949: Search API Autocomplete for Drupal 8 for now.