Entries doubled in block?

gabble - November 10, 2007 - 07:45
Project:Live Discussion
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Some users see all entries doubled in the Live Discussion block. I am user #1 and I cannot duplicate the issue, I have also created myself a dummy regular user, but everything seems fine.
Unfortunately, many users reported the problem, and I don' t know how this could be traced and fixed.

Any suggestions?

PS: drupal 5.3, and a bunch of modules… :-)

AttachmentSize
Live Discussion Block with doubled entries32.71 KB

#1

gabble - November 11, 2007 - 08:11

Doesn't matter, I have removed Live Discussions from my website and created a view with the Views Module.
Much better… :-)

Thanks anyway,
Gabriele

#2

ruyakar - January 18, 2008 - 17:30

i have the same problem.
is there any solution other than removig live discussions module?

i saw that, users who has node administration permisions don't see doubled entries. but, normal authenticated users see all entries doubled in the block.

#3

ruyakar - January 21, 2008 - 08:39

in live_discussions.module;

// create the SQL
$query = "SELECT DISTINCT cs.nid, n.title, cs.comment_count, cs.last_comment_timestamp
FROM {node_comment_statistics} cs
LEFT JOIN {node} n on n.nid = cs.nid
WHERE n.status = 1
$select_blog
ORDER BY cs.last_comment_timestamp DESC";

we should add "distinct" to the sql query.

 
 

Drupal is a registered trademark of Dries Buytaert.