I've just upgraded a 4.6.1 site to CVS and there's no comment pager on nodes with more than $comments_per_page. Is this a bug, or it it one of my modules? I've tested the site with various other themes, including the defaults.

CommentFileSizeAuthor
#5 comment.module_30.patch1.02 KBixis.dylan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ixis.dylan’s picture

Can anybody confirm this? I can't find the problem.

ixis.dylan’s picture

Hello?

Uwe Hermann’s picture

Confirmed in HEAD. The problem is here (comment.module, comment_render()):

      if ($pager = theme('pager', NULL, $comments_per_page, 0, array('comments_per_page' => $comments_per_page))) {
        $output .= $pager;
      }

The $pager variable is empty (for whatever reason), hence no pager is generated. I didn't debug this any further...

pfaocle’s picture

Priority: Normal » Critical

Confirmed here too - can any one take a look at this?

ixis.dylan’s picture

Assigned: Unassigned » ixis.dylan
Status: Active » Needs review
FileSize
1.02 KB

Comment paging has been broken in CVS for at least 3 months, yet only one other person has noticed this?

Here's a patch to fix the bug...

tostinni’s picture

I also posted a patch there.
But there's still some major bug with comments...

ixis.dylan’s picture

Oh, okay. I wish I'd seen your patch before I hunted this bug down myself, but thanks anyway.

You're right, the comment module is very broken right now. Most of the problems are related to the pager or the comment options box, but there are limitations with this module that are really quite suprising. Can we still not delete a single comment in a thread, for example? This is evil, and wrong.

pfaocle’s picture

Agreed on the deleting one comment only ting, here's some links:

http://drupal.org/node/11877
http://www.settingtheworldtorights.com/node/417 (search for 'delete a single comment')

pfaocle’s picture

Version: » x.y.z

Whoops - wrong version. Maybe this'll get noticed now... ;)

Robin Monks’s picture

Status: Needs review » Reviewed & tested by the community

+1, looks good, style seems fine...it's just a typo, get this in HEAD!!!

pfaocle’s picture

+1

Aye!

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Looks like this has been committed on 07-Oct-05?

Anonymous’s picture

Status: Fixed » Closed (fixed)