I marked this as major just because I'm getting them frequently enough in my logs. I'll try and trouble shoot tomorrow, but I wanted to at least get this posted.
Recoverable fatal error: Argument 1 passed to SearchApiIndex::loadItems() must be of the type array, null given, called in /home/.../public_html/sites/all/modules/search_api_page/search_api_page.pages.inc on line 226 and defined in SearchApiIndex->loadItems() (line 997 of /home/.../public_html/sites/all/modules/search_api/includes/index_entity.inc).
Warning: array_keys() expects parameter 1 to be array, null given in template_preprocess_search_api_page_results() (line 226 of /home/.../public_html/sites/all/modules/search_api_page/search_api_page.pages.inc).
Notice: Undefined index: results in template_preprocess_search_api_page_results() (line 226 of /home/.../public_html/sites/all/modules/search_api_page/search_api_page.pages.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2244981-1--loadItems_null.patch | 1.7 KB | drunken monkey |
Comments
Comment #1
drunken monkeyThis seems to be a problem in the Search API Pages module, which tries to load the results even when none are returned. The attached patch should fix this, please test/review! (The relevant change is the first, but we should also clean up the other parameters.)
Comment #2
drunken monkey