I've got Drupal 7.22, Views 7.x-3.7 and Views PHP 7.x-1.x-dev

My Existing view has 16,000 Users in a Table format, with a Grouping Field, 3 relationships to other Profile2 types and a pager. I add a Views PHP field (just as a field, not a filter) and the pager disappears. The Views PHP field works brilliantly (thanks!) and is just what I needed, but I can't live without the pager of course. I use the Views PHP field as my only Grouping Field.

Things I've tried to get my pager back include:

- changing from full pager to mini (and others)
- deleting and re-adding the pager
- removing the Grouping Field
- clearing the cache
- changing the Pager ID within the pager
- rescanning the template files (none are altered from standard)
- putting different code in my Views PHP field including just blank code for the Value and Display sections
- cloning the view (which is how I discovered it was the Views PHP field that was causing the trouble, by deleting and re-adding it)
- moving the View PHP field to the start of the row, or to the middle
- removing all filters
- removing all sort fields
- removing all Access Restrictions
- I am working as User 1
- tried both in Preview and on the site
- different browsers
- Using Firebug, there appears to be no HTML being printed for the pager, so don't think it's a CSS issue

Basically I am left with a simple User-based View with no relationships, 1 column as the Username, 1 as the View PHP field and have no pager.

I'm not sure what else to try for this common scenario - does anyone have any other ideas I could try?


#8 views_php.zip19.28 KBRahul Rehan


andy_g’s picture

quick update - also tried changing from table to 'unformatted list', but didn't help.

sfcamil’s picture

Hy, I have the same problem. You found a solution for this ? Thank's

Colin @ PCMarket’s picture

I am also experiencing this issue

mikemadison’s picture

I believe this is a dup of https://drupal.org/node/2123315

mikemadison’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
happysnowmantech’s picture

The bug in question will also cause the More link to disappear.

Lingaraj_M’s picture

This link may help you - https://www.drupal.org/node/2276165

Rahul Rehan’s picture

19.28 KB

use the attached module. I had remove the bugs in the module...
after using this pager will not disappear...
Currently I am using on my site. have a look http://www.pathankot35.com/

bmango’s picture

Many thanks Rahul for your updated module in #8. I uploaded it to my project and it did indeed fix the problems with the pager. That was very helpful. However, there are now two versions of the Views php module, yours and the developers. This is likely to cause issues, particularly as the developer releases new updates. Would it be possible for you to provide a patch to the developers module in place of your own updated module? Then your changes could possibly be included at a later stage in the "official" module. If you provided a patch it would really help all the people using this module.

jlyon’s picture

@bmango, see the patch in https://www.drupal.org/node/2123315#comment-9668971 that @lalweil linked to above. It fixed the issue for me.

bmango’s picture

@jlyon thanks for pointing that out, I must have missed that comment somehow, probably trying to read too quickly :)

DarrellDuane’s picture

This issue seems to be resolved in 7.x-1.0-alpha2 see more details at https://www.drupal.org/node/2123315