As soon as I save a view where i added a flag action field this error appears
Fatal error: Call to a member function get_views_info() on a non-object in .../public_html/things/sites/all/modules/flag/includes/flag_handler_field_ops.inc on line 45
Drupal 6.4
Views 6.x-2.0-rc3
6.x-1.x-dev - Sept 23
Comments
Comment #1
mooffie commentedGo to the "Flags: Flag link" field settings and click "Update". This will probably solve your problem. Please let me know. If it doesn't solve your problem, please "export" your view and paste it here.
The longer answer:
There's a glitch in Views. A "Relationship" dropdown is shown for fields/filters/etc., but unless you click "Update", this setting doesn't "catch". I'll probably file an issue against Views.
Comment #2
dodorama commentedThanks. It worked !
Comment #3
mooffie commentedI'll leave it open till I tend to it.
Comment #4
mooffie commentedAnd thanks for the report, Paolo.
Comment #5
mooffie commentedHere's the Views issue I've just opened:
#313377: Relationship wrong when skipping "Update" button
Comment #6
mooffie commentedGood news: this has just been fixed in Views. I'm closing this.
Comment #7
dodorama commentedYou guys are FAST!
Thanks, again
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
JCB commentedHi Guys,
I had the same problem with views; however the solutions you gave did not solve the problem.
Not to worry; I got it working.
I realized that I changed the bookmarks flag's "Name" located here:
admin/build/flags/edit/bookmarks
In the views there is a relationship which links to this name.
This is not the best way of connecting flag with views; but it is working.
Hope this helped someone.
JCB
Comment #10
Gabriel R. commentedI just had this problem too, and we found a different cause:
1. Create a Views display and choose to override the Relationship.
2. Add a Flag relationship.
3. Add Fields and Filters using the relationship. Note that change the default display.
RESULT: Errors in displays using the default Relationships missing the extra Flag.