Closed (cannot reproduce)
Project:
Flag
Version:
5.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2019 at 12:58 UTC
Updated:
5 Feb 2026 at 07:06 UTC
Jump to comment: Most recent
Comments
Comment #2
Sana.Neyazi commentedComment #3
hsponner commentedI have the same issue, even with 4.x-dev
Comment #4
tr commentedComment #5
thibHi,
I get the same issue :
Thanks
Comment #6
ptmkenny commentedCan you provide specific steps for reproducing this error from a clean install of Drupal 8? How was the flag created? How was the view set up?
Comment #7
thibOk,
Step to reproduce :
--------------------
- Create a flag type "Like content" -> Flaggable types "Photos Album"
- Create a content type "Photos Album"
-- Manage fields: field type reference to media (image) "Photo"
-- Manage display: disable all fields
- Create some content of type "Photos Album"
- Create block view "Photos Gallery" with these settings :
-- FORMAT
--- Format: Unformatted list
--- Show: Fields
-- FIELDS
--- Content: Photo
---- Formatter -> any other formatter than "Rendered entity"
-- FILTER CRITERIA
--- Content Published (=Yes)
--- Content Content type (=Photos Album)
-- PAGER
--- Use pager: Display all items
-- CONTEXTUAL FILTER
--- Content: ID
---- When the filter value is NOT available -> Provide default value -> Content ID from URL
-- RELATIONSHIP
--- Content Flag
---- Uncheck "Include only flagged content"
---- Flag -> Check "Like content"
-- FIELDS
--- Content: Flag link -> Relationship : Flags
--------------------
Comment #8
ptmkenny commentedThanks for updating with detailed info!
Comment #9
anthonylindsay commentedHaving encountered this issue, I think I have a solution:
Seems to be working so far.
Comment #10
gmaximus commentedThis 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.
Comment #11
katekarpenko commented#10 and #9 in their combination worked for me great, thanks!
Comment #12
deaom commentedNot sure if something changed with the 5.x version and Flag relationship, but could not reproduce following the steps from comment #7 and using 5.x dev.
Comment #13
ivnishI tested this manually using steps to reproduce from comment #7. I don't see any errors. Closing this as "cannot reproduce'