When I click the "Clear all caches" button on the Performance page, I get two warnings:
Notice: Undefined index: join field in flag_views_data_alter() (line 174 of .../sites/all/modules/flag/includes/flag.views.inc).
Notice: Undefined index: join field in flag_views_data_alter() (line 189 of .../sites/all/modules/flag/includes/flag.views.inc).
I'm using 7.x-2.0-beta5, without any patches. This happens every time I clear all caches.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | undefined_index-1160738-6.patch | 2.48 KB | geerlingguy |
| #2 | flag_undefined_index-1160738-2.diff | 585 bytes | geerlingguy |
Comments
Comment #1
geerlingguy commentedBoth of those lines read like the following:
I seem to also be getting this error after saving a view.
Comment #2
geerlingguy commentedPatch attached, gets rid of the error for me. (It's a file patch, didn't have time to do a proper Git patch).
Comment #3
geerlingguy commented...yeah... that made my views using flag relationships break. D'oh!
Comment #4
sol roth commentedSo what's the fix any news?
Comment #5
geerlingguy commentedCan't figure anything at this point; I've just been ignoring the error messages :-)
Comment #6
geerlingguy commentedAttached patch fixes the errors (which were getting unbelievably annoying ;-). Basically, I added a check for the variable before the relationship is built. Most of the patch is just indentation level changes.
I don't know if there's any better way around this, but it's working great for me.
Comment #7
TimelessDomain commentedseems to be working for me - thanks
Comment #8
geerlingguy commentedMarking RTBC, as @TimelessDomain says it works, and it's been working for me for three days now :)
Comment #9
SuperHoman commentedis this patch going to be applied to a new release?
Comment #10
thomas.sullivan commentedSorry which file is this patch patching?
I'm getting can't find file to patch at input line 5
Comment #11
dddave commented@#9 This module seems to be pretty much abandoned atm. If somebody capable would volunteer to become a co-maintainer...
@#10 As the patch clearly states the file to be patched is /includes/flag.views.inc.
Comment #12
thomas.sullivan commentedYep see that now. Thanks and sorry.
Comment #13
santam commentedThanks the patch worked for me too.
Comment #14
quicksketchThanks, committed #6.