Uncaught PHP Exception: with ResultSetInterface, null given

Created on 31 March 2023, over 1 year ago
Updated 12 September 2023, about 1 year ago

Problem/Motivation

I am getting a strange PHP error that give the WSOD and I can't seem to track down the issue.

Uncaught PHP Exception TypeError: "Drupal\search_api_page\Controller\SearchApiPageController::finishBuildWithoutResults(): Argument #2 ($result) must be of type Drupal\search_api\Query\ResultSetInterface, null given, called in /Applications/MAMP/htdocs/humble/web/modules/contrib/search_api_page/src/Controller/SearchApiPageController.php on line 125" at /Applications/MAMP/htdocs/humble/web/modules/contrib/search_api_page/src/Controller/SearchApiPageController.php line 294

Drupal 10
Search API 8.x-1.28
Search API Solr 4.2.10
Local Solr install Solr 8.11
Index has Title Fields and Full Text fields (Description)

When I enter anything into the search box I get the error.

Any ideas?

Steps to reproduce

Fresh install, same result.

Resolution

I fixed this as it was in fact a mis-conf of the solr server core config files. Others may make the same mistake as the Search API Solr documents are very detailed but some what misleading is this area. When creating a core, confirm that the Drupal created Config files were actually loaded into the core, mine we not copied over when I created a new core in Solr.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DrupalRanger

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024