Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2025 at 09:23 UTC
Updated:
14 Oct 2025 at 07:24 UTC
Jump to comment: Most recent
Comments
Comment #4
drunken monkeyThanks a lot for reporting this problem!
I can reproduce it: If a datasource does not support viewing items, the
SearchApiRowplugin will crash the whole page request.However, while your patch would avoid that fatal error, I think the proper solution is slightly more complex:
render(), we should explicitly check whether the datasource supports viewing items and bail early otherwise. With your suggested code, we would still call$datasource->viewItem()which would likely result in an exception or error itself.I created an MR with those fixes, please review!
Comment #5
drunken monkeyMerged.