Adding a new page display to a Search API view with the Datasource filter on it results in a view page with a crash.

The output on the page of the new page display shows this:

> Fatal error: Call to a member function addCondition() on null in modules/search_api/src/Plugin/views/filter/SearchApiFilterTrait.php on line 50

This is fixed by a cache clear.

Comments

joachim created an issue. See original summary.

drunken monkey’s picture

Status: Active » Closed (duplicate)
Related issues: +#2721629: Clear all necessary Views caches when an index is created or changed
joachim’s picture

Status: Closed (duplicate) » Active

It's not #2721629: Clear all necessary Views caches when an index is created or changed, because that is about clearing Views caches when adding an index.

This one is about adding a new View display.

Might be a newer version of #2740605: New search views crash with 'plugin not found' exception, as I no longer see the 'plugin not found' exception from that bug. But it could just be that this crash happens first now!

drunken monkey’s picture

Status: Active » Closed (duplicate)