Search throws 500 error when solr not available

Created on 9 January 2023, almost 2 years ago
Updated 27 August 2024, 4 months ago

Problem/Motivation

I received a 500 exception when I access the page while my solr is not available.

TypeError: Argument 2 passed to Drupal\search_api_page\Controller\SearchApiPageController::finishBuildWithoutResults() must implement interface Drupal\search_api\Query\ResultSetInterface, null given

Steps to reproduce

Stop solr and access page.

Remaining tasks

Fix the issue.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024