Call to a member function addTag() on null in Drupal\search_api\Plugin\views\cache\SearchApiTimeCache->alterCacheMetadata()

Created on 5 December 2022, over 1 year ago
Updated 20 May 2023, about 1 year ago

Problem/Motivation

Error: Call to a member function addTag() on null in Drupal\search_api\Plugin\views\cache\SearchApiTimeCache->alterCacheMetadata() (line 292 of /home/runner/work/vcp/vcp/docroot/modules/contrib/search_api/src/Plugin/views/cache/SearchApiCachePluginTrait.php) #0 /home/runner/work/vcp/vcp/docroot/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2358): Drupal\search_api\Plugin\views\cache\SearchApiTimeCache->alterCacheMetadata()

Steps to reproduce

Proposed resolution

Change addTag call to Null-safe operator, to check & proceed only if the query is not empty.

Remaining tasks

🐛 Bug report
Status

Closed: duplicate

Version

1.28

Component

Views integration

Created by

🇮🇳India Shriaas Pune

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.69.0 2024