Skip to main content

Working in Drupal 9.5 and I'm now getting the following cache tag error

The website encountered an unexpected error. Please try again later.
Error: Call to a member function getCacheTags() on null in Drupal\views\Plugin\views\query\Sql->getCacheTags() (line 1683 of core/modules/views/src/Plugin/views/query/Sql.php).

This issue was raised on 8th September 2020 see Fatal error "getCacheTags() on null" on admin/content Views page (https://www.drupal.org/project/drupal/issues/3169694).  Which comment 2 works for me... get_cache_tags_null-3169694-2.patch.

Download the file (I downloaded to directory patches) and apply the patch by using the following command

patch -p1 < patches/get_cache_tags_null-3169694-2.patch.txt

 

Related articles