This is a reopend BugReport similar to the Problem under http://drupal.org/node/318270

I created a View (with or without arguments) and still the pager disappears. The funny thing, the pager disappears in the views-preview also.
If I change the pager ID, the pager is displayed and work half.
half means:
- On the First page it look every thing fine, but it isn't.
- If I click on "next" the link is always the Link from the first page
- If I click on a number the corecct site is shown but the pager is still on page 1 active. If I click on next I am again on page 1(of course).
- Click on Last works fine, but still the first page is as active marked.

For me it looks like the same stuff as descripte in this issue http://drupal.org/node/318270.

Comments

dawehner’s picture

No nothing is similar to views 1.x :)

It might be valuable if you read http://drupal.org/node/571990

Its critical that the bug is reproduable.

Oh cool you assigned the bug for yourself, i hope you fix it :)

iamjon’s picture

Coud this be a duplicate of this issue?
http://drupal.org/node/754906

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: -pager, -disappear, -paging

Could be, could someone confirm this?

Removed the stupid tags, too

triversedesigns’s picture

I am too having this issue, but not using any arguments like the other issue that has been linked to in the thread on comment #2.

No matter what view I create, I still cannot see the pager, in either the Preview or the actual page.

hsudhof’s picture

I am experiencing the same issue. To recap:

-Pagers are missing for some, not all views. Regardless of theme used, also in the preview
-Using a different pager id makes the pager appear, however the $tags array passed to theme_pager is always empty - leaving the pager stuck on page 1

It manifests itself on two of my drupal development systems - it might be a common 3rd module. The views affected have no easily visible common element. Some use arguments, others not - etc.

Is there any particular piece of information I could provide to make debugging this feasible?

Thanks and cheers,
~H

Edit: I was able to debug the issue to be caused by the Pagination (Node) Module. At least in my case, the problem is the pagination_preprocess_node function, which overwrites the pager variables used by views.

triversedesigns’s picture

I am not using the Pagination (Node) Module and still getting the same issue.

hsudhof’s picture

Well, I suspect that most errors of this kind are caused by other modules overwriting the pagination variables. Especially views using nodes for the row design are suspectible to this, as the whole nodeapi, preprocess etc hooks are called. Doing a grep for pager_page_array in your modules directory might help you finding the culprit.

sol1313’s picture

Title: View pager disappeared » View pager disappeared-Subscribing

I am also having the same issue. I did notice that the issue appeared after I updated Views to 6.x-2.11. All the pagers were working before however now some of them are gone.

If you view this page: http://cabaonline.com/caba-photo-gallery the pagers are there. If you click on any one of the images, it will take you to the slideshow page for that gallery.

The slideshow page displays the images in thumbnails and when clicked are viewed in a lightbox. Each gallery has several pages of images but as you will see the individual pages no longer have the pagers. They were there a month ago and now they are gone.

I have tried the following:

- Created new views
- Created pages based on titles instead of NIDs
- Change the pager element to 1 instead of 0
- Created separate views (one for the gallery page and one for the slideshow page)
- Read several discussions regarding pagers conflicting when the arguments are NIDs and tried all possible work arounds

The pagers were definitely there before so I am thinking that there must be some conflict with the new version of Views. From other discussions with the same issue, it leads me to believe that the conflict lies when you pass an argument limiting the results to one node. In my case, my 1 node that I am filtering for has numerous images. Previously there were 20 images per page and a pager that would go through the 20 images at a time per page.

If anyone else has found a solution, please post it. Maybe we can work together to resolve the issue. If I find the answer, I will also post it here.

Thanks!

Wim Hellinck’s picture

I am also having the same issue with my photo-gallery similar to sol1313 after upgrading to 6.x-2.10.
I did a grep for pager_page_array as suggested and only found it in on my installation in the views module and taxonomy module.

Wim Hellinck’s picture

I’ve done some further investigation on my views that have the issue and it seems related to an additional DISTINCT in the sql-query.
In view.inc in “function execute” I found:
if (!empty($this->pager['use_pager']) || !empty($this->get_total_rows)) {
$this->total_rows = db_result(db_query($count_query, $args)) - $this->pager['offset'];
}
In the wrong views the db_result(db_query($count_query, $args)) is always 1 and hence no pagers are created.
It seems like the $count_query always includes DISTINCT while this wasn’t the case previously.

Example of the views-generated query that should return the number of photos in a gallery:
SELECT COUNT( * )
FROM (
SELECT DISTINCT node.nid AS nid
FROM node
LEFT JOIN content_field_galerijfoto node_data_field_galerijfoto ON node.vid = node_data_field_galerijfoto.vid
WHERE ( node.type IN ('fotogalerij')) AND ( node.status <>0 ) AND ( node.nid =2605 ) )count_alias

This query returns 1, but if I remove DISTINCT from the sql-query then it returns 45 which matches the expected result: the number of attached photos to the photogallery.

iamjon’s picture

Dret’s picture

Version: 6.x-2.10 » 6.x-2.11

I have the same problem!

Pagers are not showed...

My situation: I'm using "Semantic Views" plug-in for all my views and all them are "attached" to nodes with "Views Reference" CCK module. And finally: in all my pages there's a View that use "Slideshow Views" as plug-in.

I don't use arguments or module to controll access to nodes.
I change the ID of my pager in according with suggestions found on this site!

I hope could be usefull... and please... find a solution!!
Thanks!

Dret’s picture

I solved: in my chase the problem was a corrupted theme file for views (views-views.tpl.php).

Bye!

esmerel’s picture

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

Status: Active » Postponed (maintainer needs more info)

can someone please post reproduction instructions for this bug.
please ensure that there are no node access modules activated.
marking this as postponed.

iamjon’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I'm marking this as closed. Please feel free to reopen with more information.