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.

Comments

teknocat’s picture

potop’s picture

Same problem.
And the patch makes it work.

cafuego’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Active » Fixed

This looks like it's been fixed in 7.x-1.x-dev since November 2013.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.