Flag in Views: Call to a member function getConfigDependencyName() on null

Created on 1 May 2019, about 5 years ago
Updated 20 December 2023, 7 months ago

Error: Call to a member function getConfigDependencyName() on null in
Drupal\flag\Plugin\views\relationship\FlagViewsRelationship->calculateDependencies() (line 170 of
/var/www/html/My_project

Whenever i used flag in "fields" or "Sort Criteria" or "Relationships",getting this error. I have used all patches related to similar type of this issue,but all are not working. If any one has solution of this ,please comment here .

Thanks in Advance

🐛 Bug report
Status

Active

Version

4.0

Component

Views integration

Created by

🇮🇳India Sana.Neyazi

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.

  • 🇬🇧United Kingdom gMaximus

    This happened to me on a view that I'd already done a huge amount of work on. Inc templates. I edited the view and added relationships to flags that restricted the content. Hit this error, even when removing those relationships, I still couldn't successfully save.

    Found this post and wasn't in a rush to rebuild the view. So I hit cancel on the view. Edited the view again and re-done the changes. Then it worked. No idea why but try it if you haven't. Damage limitation really. Fingers crossed.

  • 🇺🇦Ukraine KateKarpenko Kyiv

    #10 and #9 in their combination worked for me great, thanks!

Production build 0.69.0 2024