Hello,

After updating Views from 3.7 to 3.8, pagination it is not displayed anymore for pages. This problem appears if editing old views. If I create a new view(page) pagination it is displayed.
Any quick fixes for this?

CommentFileSizeAuthor
views-paginator.png63.76 KBalexrose

Comments

alexrose’s picture

Issue summary: View changes
Kiwa’s picture

I encountered the same problem. As long as I don't touch old views, they work correctly, but as soon as I change on, the pager goes missing.

Anatsim’s picture

The same problem :(
Came back to version 7.x-3.7

dan kolbas’s picture

This Method might not be what you're looking for, but I just upgraded from Views 7.x-3.7 -> 7.x-3.8 and ran into a pagination issue.

It's not the cleanest method, but works.

The key points to using this method is:

  • MYMODULE_views_pre_execute()
  • building a clean offset by using: $query->range($offset, $view->query->limit);
  • Works well if you have the page # in the url
function MYMODULE_views_pre_execute(&$view) {
  if ($view->name == 'taxonomy_term') {
    if (user_access('view all pages')) {
      $view->query->pager->options['total_pages'] = NULL;
      $query = $view->build_info['query'];
      $offset = $view->query->pager->current_page * $view->query->limit;
      $query->range($offset, $view->query->limit);
    }
  }

source: http://drupal.stackexchange.com/questions/117978/view-with-paged-output-...

raj.chourasia’s picture

Same issue

devad’s picture

Same happened to me after 7.x-3.7 -> 7.x-3.8 upgrade.

Removing Global: PHP field brought back pager to my view in my case.

My Views PHP version: 7.x-1.x-dev (2014-Jan-06)

There is also Views PHP patch on: https://www.drupal.org/node/2276165

RunePhilosof’s picture

Status: Active » Closed (duplicate)

It is a views php problem https://www.drupal.org/node/2276165