When it was added in #1834998: Add support for the Search API module the lib/Drupal/SearchApi/FacetApi folder didn't match the capitalization convention used elsewhere and most importantly it didn't match the path defined in the .info file causing issues when building the class registry.
This difference in paths causes issues with Drupal's discovery process and sometimes prevents the class from being added to the registry. When this takes place the following error shows up in the logs:
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'Drupal_SearchApi_Facetapi_QueryType_DateRangeQueryType' not found in FacetapiAdapter->loadQueryTypePlugins()
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | date_facets-registry_error-1988354-1.patch | 8.92 KB | slucero |
Comments
Comment #1
sluceroI've attached a patch to fix this issue. Essentially it just renames the folder, but the patch format requires removal of the file and adding of the new one.
Comment #2
eugene.ilyin commentedThank you. It's really stupid error :(
Commited.
Comment #3.0
(not verified) commentedLinking original issue in description and clarifying the wording.