Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 ?
Comment | File | Size | Author |
---|---|---|---|
#4 | search_api_autocomplete-fix-namaspace-2774091-4.patch | 1.21 KB | myLies |
#3 | fatal-suggesterplugin-base--2774091--2.patch | 1.21 KB | zuhair_ak |
Comments
Comment #2
zuhair_akComment #3
zuhair_akI 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.
Comment #4
myLies CreditAttribution: myLies as a volunteer commentedalso need to change the namespace in SuggesterPluginBase.php
see Drupal 8 Examples in https://www.drupal.org/node/1353118
Comment #5
dawehnerNote: Your patch is included in the most recent list of changes: https://www.drupal.org/node/2682949#comment-11483777
Comment #6
zuhair_akDidn't know development was going on in github. Should future issues be filed in github account?
Comment #7
dawehner@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
Comment #8
drunken monkeyCommitted 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.