I've got following error on view edit:
warning: array_diff() [function.array-diff]: Argument #2 is not an array in views_or/views_or_handler_filter.inc on line 135.
warning: Invalid argument supplied for foreach() in views_or/views_or_handler_filter.inc on line 135.
warning: array_diff() [function.array-diff]: Argument #2 is not an array in views_or/views_or_handler_filter.inc on line 135.
warning: Invalid argument supplied for foreach() in views_or/views_or_handler_filter.inc on line 135.
using Views 3.x
Comments
Comment #1
kenorb commentedOk, probably I had wrong order of Begin and End alternatives;/
Comment #2
jim kirkpatrick commentedI just fell into this trap too! It's very very easily done...
So converting this to a task: Add some views validation to catch mis-ordered or missing Views Or arguments/filters.
I.e. in the same way you can't save a Page display view without having a path, or Fields without selecting fields, this module should prevent views being saved with either missing required bits (begin, end, at least one alternative) or the wrong order trap myself and kenorb fell into...
Is this a goer?
Comment #3
jim kirkpatrick commentedForgot to re-open..
Comment #4
kenorb commentedDrupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.