incompatibility with views 2, paging is not possible (viewable) using per node validation with the argument: Node ID from URL
original thread: http://drupal.org/node/366419 (No pager in individual "Node ID from URL" ... )

Comments

jannalexx’s picture

bug reproduced in a clean installation, details in the views thread, seems to be an acl issue, if so we will move it here

salvis’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

What exactly are you trying to accomplish with ACL? ACL is an infrastructure module — it doesn't do anything if you install it by itself. You need another module (like Forum Access, for example) that will make use of ACL before you get any benefit from it.

jannalexx’s picture

Status: Fixed » Postponed (maintainer needs more info)
StatusFileSize
new100.77 KB
new31.6 KB
new103.41 KB

I can try to explain what I will to do with acl but not really the issue right now. It has to do with galleries per content type with special rights to users

just enabling acl and views 2 you can reproduce the issue in a clean installation, strange but simple as that

try to build a view like this one:

$view = new view;
$view->name = 'commview1';
$view->description = 'views-acl bug';
$view->tag = 'bug';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'status' => array(
    'label' => 'pub',
    'type' => 'yes-no',
    'not' => 0,
    'exclude' => 0,
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
  'title' => array(
    'label' => 'title1',
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'type' => array(
    'label' => 'type1',
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'subject' => array(
    'label' => 'commtitle1',
    'link_to_comment' => 1,
    'exclude' => 0,
    'id' => 'subject',
    'table' => 'comments',
    'field' => 'subject',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'nid' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'oles',
    'title' => '',
    'default_argument_type' => 'node',
    'default_argument' => '',
    'validate_type' => 'node',
    'validate_fail' => 'not found',
    'break_phrase' => 1,
    'not' => 0,
    'id' => 'nid',
    'table' => 'node',
    'field' => 'nid',
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'page' => 'page',
      'story' => 'story',
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
    'override' => array(
      'button' => 'Override',
    ),
    'validate_argument_is_member' => 0,
  ),
));
$handler->override_option('filters', array(
  'status_extra' => array(
    'id' => 'status_extra',
    'table' => 'node',
    'field' => 'status_extra',
  ),
  'status' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('title', 'testing acl-views bug');
$handler->override_option('empty', 'nothing?');
$handler->override_option('empty_format', '1');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 2);
$handler->override_option('use_pager', '1');
$handler->override_option('pager_element', 1);
$handler->override_option('use_more', 1);
$handler->override_option('distinct', 0);
$handler->override_option('style_options', array(
  'grouping' => '',
));
$handler->override_option('row_options', array(
  'inline' => array(
    'field_photo_perioxes_fid' => 'field_photo_perioxes_fid',
  ),
  'separator' => '',
));
$handler = $view->new_display('block', 'Μπλοκ', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('page', 'Σελίδα', 'page_1');
$handler->override_option('path', 'photocollection');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));

salvis’s picture

just enabling acl and views 2 you can reproduce the issue in a clean installation, strange but simple as that

Then please try to enable some other node access module (such as Content Access) and Views 2, without ACL.

Have you checked whether you can see the other nodes outside of Views 2? What happens if you change the page size to 1 or to 3?

jannalexx’s picture

! Content Access : YES same issue exactly, that means there may be a connected, relevant behavior inside those modules
even in preview mode views2 can reproduce the bug
anything else seems normal, page size seems irrelevant as checked in different circumstances

salvis’s picture

Status: Postponed (maintainer needs more info) » Fixed
jannalexx’s picture

More info. modules Taxonomy Access Control Lite http://drupal.org/project/tac_lite
and Taxonomy Access Control http://drupal.org/project/taxonomy_access
same behavior after rebuilding permissions

jannalexx’s picture

salvis’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ah, thanks. This definitely confirms that it's an issue between Views 2 and the node access mechanism in core, which is activated by installing any node access module.

Status: Fixed » Closed (fixed)

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

RikiB’s picture

Version: 6.x-1.0-beta4 » 6.x-1.2
Status: Closed (fixed) » Active

Sorry for re-opening this but this is still a real issue and Ive tried every patch I could find for days and nothing seems to fix it. My steps to reproduce this is very simple, hopefully someone can provide a solution with Drupal 6.16

1. Installed a fresh copy of Drupal 6.16

2. Install views module

3. create a node and add 5 comments.

4. Create a view and add Comment: Body into the Fields and Node: Nid as a filter or argument. Also set use pager to Mini and Items per page to 2. Preview the view and notice a pager is at the bottom (works as expected).

5. Install ACL and Rebuild Permissions

6. Preview the view again and notice the pager is gone.

Installing ACL by itself wont cause the pager to disappear, but as soon as you rebuild permissions it will disappear. Does anyone have any any ideas on how to solve this?

salvis’s picture

Version: 6.x-1.2 » 6.x-1.0-beta4
Status: Active » Closed (fixed)

See #9.

Remove ACL and install any other node access module, do the rebuild, and you'll see the same behavior.

If it really still is an issue, then it's an issue between core and Views.