If you enable Ajax option in your view, clicking on a pager link will cause this Fatal Error:

PHP Fatal error: Call to a member function set_display() on a non-object in /Users/[...]/sites/all/modules/contrib/views_access_callback/views_access_callback.module on line 23

This happens because on Ajax Request the current path is views/ajax instead of the view path.

Comments

aronne created an issue. See original summary.

aronne’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Assigned: aronne » Unassigned
Status: Active » Needs review
StatusFileSize
new2.09 KB

And here is the patch

aronne’s picture

StatusFileSize
new2.15 KB

Uploaded fixed version of the patch.

kingdutch’s picture

StatusFileSize
new2.15 KB

I couldn't get the patch to apply due to some off by one errors so I manually reapplied it and the lines were indeed off by one.

New patch attached.