Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
drunken monkeyThis seems to be the same as #2721629: Clear all necessary Views caches when an index is created or changed or #2740605: New search views crash with 'plugin not found' exception, then. Or is this yet a third Views data caching problem?
Comment #3
joachim CreditAttribution: joachim commentedIt'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!
Comment #4
drunken monkeyYep, duplicate of #2740605: New search views crash with 'plugin not found' exception.