Comment pager not working in cvs?

leafish_dylan - June 29, 2005 - 23:43
Project:Drupal
Version:x.y.z
Component:comment.module
Category:bug report
Priority:critical
Assigned:leafish_dylan
Status:closed
Description

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.

#1

leafish_dylan - July 4, 2005 - 23:41

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

#2

leafish_dylan - July 15, 2005 - 12:35

Hello?

#3

Uwe Hermann - August 23, 2005 - 14:12

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...

#4

leafish_paul - September 9, 2005 - 21:11
Priority:normal» critical

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

#5

leafish_dylan - September 19, 2005 - 15:52
Assigned to:Anonymous» leafish_dylan
Status:active» needs review

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...

AttachmentSize
comment.module_30.patch 1.02 KB

#6

tostinni - September 19, 2005 - 17:21

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

#7

leafish_dylan - September 19, 2005 - 23:00

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.

#8

leafish_paul - September 20, 2005 - 10:17

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')

#9

leafish_paul - October 27, 2005 - 12:03
Version:<none>» x.y.z

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

#10

Robin Monks - October 30, 2005 - 18:57
Status:needs review» reviewed & tested by the community

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

#11

leafish_paul - October 30, 2005 - 22:28

+1

Aye!

#12

Dries - October 31, 2005 - 13:44
Status:reviewed & tested by the community» fixed

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

#13

Anonymous - November 14, 2005 - 14:00
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.