0

I've been trying to figure out why the pager element for views won't show up for anon users in Drupal 7. The following are the things I've tried to get them to show, cache clear, mess with the access param in the actual view, create a function that calls

drupal_static_reset('user_access');
drupal_static_reset('user_role_permissions');

Has anyone been able to solve this? I've searched Google for over an hour for a fix/explanation.

1
  • Those drupal_static_reset() calls just force Drupal to re-read the database tables, or invoke the hooks implemented by modules, to restore static values. They don't stop Drupal from applying permissions.
    – apaderno
    May 16, 2011 at 16:59

1 Answer 1

1

If after running the permission checks drupal doesn't find enough items to fill your view it will not show the pager (for any user role). You should check why there aren't enough items for the view. Did you check for the number of items on a page (in the view). Is the pager set to be on (in the view). There are chances that you forgot to check some of these settings. It happens.

1
  • It turns out its a bug with D7 views alpha, so I upgraded to beta3, and lost all of my views. Now have to rebuild them in the new, terrible UI May 19, 2011 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.