I'm using the default taxonomy_term view, slightly updated. Exported view settings are attached. I've also created a template to display that unformatted view, it's attached as well. It's all working fine, except for the fact that $pager variable is always empty when it shouldn't. Trying to figure out the source of the problem, I've found that the following lines:

  function render_pager() {
    if (!empty($this->pager) && $this->pager->use_pager()) {
      $exposed_input = isset($this->view->exposed_data_raw) ? $this->view->exposed_data_raw : NULL;
      return $this->pager->render($exposed_input);
    }
    return '';
  }

- $this->view->exposed_data_raw is empty, so is $exposed_input. Maybe it's the root of the problem, but I couldn't research it deeper since I can't understand where the exposed_data_raw property is set, the mentioned above function looks like the only piece of code where it's referenced. Please help me!

Comments

merlinofchaos’s picture

That is probably a red herring. All that is doing is sending exposed input data through so that it will be part of the page numbers so that you do not lose form data while paging.

Is there something else on the same page that also uses a pager?

dawehner’s picture

Could you test http://drupal.org/node/698270 Perhaps this fixes your problem.

Did you additional tryed to remove your tpls? Perhaps they are the root of evil :)

dawehner’s picture

The exported view works fine for me here.

dagmar’s picture

Status: Active » Postponed (maintainer needs more info)
marrch_caat’s picture

Hmmm, I can't understand what's wrong, but I hope you could help me... I added another display with style = HTML list and row type = fields, and pager was displayed OK. Then I changed row type to node (teaser or full, doesn't matter), and the pager disappeared.

I've removed all theming from the view and from node display, rebuilt theme cache, but the problem is still reproducible. Page template doesn't contain any more pagers. The patch mentioned by dereine doesn't help. What could I look at then?..

merlinofchaos’s picture

If using the 'node' row type, is it set to display comments? If so, that is the problem. Drupal's comments use a pager, and that is pager element ID 0, and that can't be turned off. If that's the case, it interferes with the Views pager element, and you'll need to change that to 1 or something.

marrch_caat’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Wow, that's the problem, thank you, thank you a lot! Setting the view's pager ID to 1, I've made it working fine (though I can't understand why the "preview" feature on the view edit page is working fine anyway). Thank you once more for your help!

marrch_caat’s picture

Title: Pager is not rendered (due to exposed_data_raw property not set?) » Pager is not rendered when using "node" row type with comments enabled.

Wow, that's the problem, thank you, thank you a lot! Setting the view's pager ID to 1, I've made it working fine (though I can't understand why the "preview" feature on the view edit page is working fine anyway). Thank you once more for your help!