Bug in Acquia Search module
Admin page url: /admin/config/search/search-api/server/acquia_search_server
Error log: Error: Call to undefined function theme_search_api_server() in acquia_search_theme_search_api_server() (line 663 of
Using:
Drupal 8.8.6
Acquia connector: 8.x-1.21
Search API: 8.x-1.17
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | acquia_connector-fix-search-api-theming-changes-3145134-7.patch | 2.03 KB | wells |
| Screenshot 2020-06-03 at 12.33.55 PM.png | 16.47 KB | gaurav_manerkar |
Comments
Comment #2
gaurav_manerkar commentedSearch API 1.17 module has removed all theme function.
So please update module accordingly.
Thanks
Comment #3
janusman commentedPatch for review.
Comment #4
janusman commentedComment #5
ShawnRong commentedAccording to the Search API Theme hook update.
https://www.drupal.org/node/3138575
Replace "theme_search_api_index" with "template_preprocess_search_api_index" , "theme_search_api_server" with "template_preprocess_search_api_server"
Comment #6
wellsPatch in #5 overwrites the output from Search API so the actual server and index info is missing.
It looks like Acquia is already working on this (see Upgrading Search API causes "Call to undefined function theme_search_api_server()" error) but I am attaching a temporary fix patch that will work for now. This likely won't be the best way to address this change.
Comment #7
wellsScratch #6 patch, PHPStorm mangled my line endings (:
Updated patch attached.
Comment #8
ankit agrawal commentedReverting the Search API module to 1.16 as per https://support.acquia.com/hc/en-us/articles/360048786374-Upgrading-Sear... fixed the issue.
Acquia search going to have the new release which should be compatible with Search API 1.17.
Comment #9
gaurav_manerkar commentedThanks everyone.
I am going to close this issue as new version of Acquia Connector module is already released by Acquia which is compatible with Search API v1.17
Comment #10
gaurav_manerkar commented