After we upgraded to this module from insert view module, the search functionality (search api and search api solr) is broken with exception error :
TypeError: Argument 1 passed to Drupal\Core\Cache\CacheableMetadata::createFromRenderArray() must be of the type array, null given, called in */web/core/lib/Drupal/Core/Render/Renderer.php on line 358 in Drupal\Core\Cache\CacheableMetadata::createFromRenderArray() (line 149 of core/lib/Drupal/Core/Cache/CacheableMetadata.php).
Unfortunately the errors are not very descriptive, so we don't know exactly where it is broken, so I created the issue here to see if anyone has any idea?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | null_render_array-3180525-2.patch | 499 bytes | theterencechan |
Comments
Comment #2
theterencechan commentedIn some cases arguments to the view are not resolved. In this case with search indexing or query results, node id extracted from page url by contextual filter is not available as an argument to the view and hence a null is resulted. Further down the road, the text renderer crashes and throw this error. If we could provide arguments in the tag this could be avoided but there maybe cases unknown, so an empty array would let it fail through.
Comment #5
a.dmitriiev commentedAlso had the same error when using the taxonomy view that renders nodes, that have the view embeded with this module. Thanks. Added to 1.x-dev and 2.0.x-dev versions.
Comment #7
dadderley commentedThanks for this module.
I was using the insert view module and encountered this error when I ran cron.
Cron choked when trying to index content for search.
I was getting these errors
When searching for solutions I came across this thread.
I uninstalled insert view module and installed Advanced Insert View 2.0.0-alpha1
Cron is happy now.
Thanks again
Comment #8
kristi wachter commentedJust seconding dadderly -
I was using the insert view module and encountered this error when re-indexing a Search API index.
Following dadderly's comment, I uninstalled Insert View and installed Advanced Insert View instead, and now my re-indexing is working.
Thanks for this module, and thanks to dadderly for reporting!