Active
Project:
Boost
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2011 at 03:05 UTC
Updated:
4 Oct 2011 at 20:53 UTC
Hi,
I'm getting this error when not logged in and trying to access an unauthorised page that contains a view. The code that is causing this is:
// Handle views.
if (isset($parts['menu_item']['page_callback']) && $parts['menu_item']['page_callback'] == 'views_page') {
$parts['menu_item']['page_callback'] = 'view';
$parts['menu_item']['page_type'] = array_shift($parts['menu_item']['page_arguments']);
$parts['menu_item']['page_id'] = array_shift($parts['menu_item']['page_arguments']);
// See http://drupal.org/node/651798 for the reason why this if is needed
if (is_array($parts['menu_item']['page_id'])) {
$parts['menu_item']['page_id'] = array_shift($parts['menu_item']['page_id']);
}
return $parts;
}
I'm not too sure if this is a bug or a problem with my view because the string that is under $parts['menu_item']['page_arguments'] is:
string(60) "a:2:{i:0;s:25:"revisioning_content_admin";i:1;s:6:"page_1";}"
Any help would be appreciated!
Cheers,
Z
Comments
Comment #1
acbramley commentedThis seems to happen on any custom (one I've created) views page