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()

Comments

slucero’s picture

Status: Active » Needs review
StatusFileSize
new8.92 KB

I'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.

eugene.ilyin’s picture

Status: Needs review » Fixed

Thank you. It's really stupid error :(
Commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Linking original issue in description and clarifying the wording.