The function views_access_callback_access_callback() requires 3 arguments, $view_name, $display_id and $access_callback. However, on line 9 of views_access_callback_plugin_access_callback.inc, it calls the function as follows:
return views_access_callback_access_callback($this->options['views_access_callbacks'], array($this->view->name, $this->display->id, $this->options['views_access_callback']));
Note that the first argument is not even valid ($this->options['views_access_callbacks']) and the second is an array containing the three arguments needed for that function.
So this code results in two errors. One is a notice about index not found "views_access_callbacks" on $this->options and the second is a warning about the 3rd argument being missing when calling views_access_callback_access_callback().
The fix is simple, just unroll that function call to be this:
return views_access_callback_access_callback($this->view->name, $this->display->id, $this->options['views_access_callback']
Patch to come shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | bad_arguments_for_views_access_callback_access_callback.patch | 738 bytes | teknocat |
Comments
Comment #1
teknocat commentedComment #2
potop commentedSame problem.
And the patch makes it work.
Comment #3
cafuego commentedThis looks like it's been fixed in 7.x-1.x-dev since November 2013.