Views UI overrides og/users/X/add with an "Add a View" page where X is any node ID.
For closed Organic Groups, the group admin must add/delete users from the group. For other group types, this is optional. Normally, when one goes to the group's subscriber listing, there are tabs for 'List' and 'Add subscriber'. If I only activate Views and Views RSS, then everything is normal. Once I activate Views UI, the tabs change to 'View', 'Clone', 'Export', 'List', and 'Add subscriber'. However, clicking on 'Add subscriber' presents me now with an 'Add a View' page. The name of the view is filled in as 'og'. Everything appears to be the view for the og page - a listing of groups on the site, paginated and in tabular form. I have made no changes to any views myself. I have cleared the view cache as well as all others.
The 'View' and 'List' tabs operate identically by listing subscribers. I can activate any number of other Views modules with no ill effect. Only Views UI creates this issue.
I searched to see if this is a duplicate bug, but didn't find anything. Can anyone else duplicate this? I'm using the CVS version of OG due to bugs in the last 5.x release that have been fixed since. Let me know if you need any more information and where I might find it. The following is what I get when I click the 'Export' tab. It may not be useful in this case, but here it is anyway...
$view = new stdClass();
$view->name = 'og';
$view->description = 'groups directory';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Groups directory';
$view->page_header = '';
$view->page_header_format = '2';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = 'No groups';
$view->page_empty_format = '1';
$view->page_type = 'table';
$view->url = 'og';
$view->use_pager = TRUE;
$view->nodes_per_page = '90';
$view->menu = TRUE;
$view->menu_title = 'Groups';
$view->menu_tab = TRUE;
$view->menu_tab_weight = '-5';
$view->menu_tab_default = TRUE;
$view->menu_tab_default_parent = NULL;
$view->menu_parent_tab_weight = NULL;
$view->menu_parent_title = NULL;
$view->sort = array (
);
$view->argument = array (
array (
'type' => 'rss_feed',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Group',
'handler' => 'views_handler_field_nodelink',
'sortable' => '1',
'options' => 'link',
),
array (
'tablename' => 'users',
'field' => 'name',
'label' => 'Manager',
),
array (
'tablename' => 'og',
'field' => 'count',
'label' => 'Subscribers',
),
array (
'tablename' => 'og',
'field' => 'description',
'label' => 'Description',
),
array (
'tablename' => 'og',
'field' => 'subscribe',
'label' => 'Subscribe',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'og',
'field' => 'directory',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'title',
'operator' => 'contains',
'options' => '',
'value' => '\'\'',
),
array (
'tablename' => 'og_views',
'field' => 'og_type',
'operator' => '=',
'options' => '',
'value' => '0',
),
);
$view->exposed_filter = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Search for a group by name',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '0',
),
);
$view->requires = array(node, users, og, og_views);
$views[$view->name] = $view;
Comments
Comment #1
moshe weitzman commentedi just changed og to avoid this problem. thanks for the report.
Comment #2
(not verified) commented