Closed (fixed)
Project:
Drupal core
Version:
4.7.0-beta6
Component:
forum.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Mar 2006 at 05:24 UTC
Updated:
24 Mar 2006 at 14:08 UTC
Jump to comment: Most recent file
Comments
Comment #1
cagg commentedwell, after some further testing involving creating some posts, the count would only update every 2nd entry or the count would skip one. However after I started deleting posts to check the count decreases I eventually got an db error "Incorrect key file for table './drupal/node.MYI'; try to repair it" so it appears my node table was corrupted. I did REPAIR TABLE and now the count appears to be updating.
However I did note that the "last post" column is showing the oldest post not the most recent as I would expect
Comment #2
thinkling commentedI'd like to confirm this bug.
I'm seeing the post count increment correctly, but the "last post" column sticks to the first post made in the forum and does not update.
I'm running a fresh install of 4.7b6 on PHP 4.4.x, MySQL 4.0.23.
Comment #3
Zen commentedPatch attached:
-solves the last post issue.
-removes unnecessary cruft from the query.
-also removes the pointless if statement at the top of the function.
This function is only called once - by forum_page.
Cheers,
-K
Comment #4
Zen commentedJust checked with Cvbge and pgSQL requires the != 0 in the IF.
updated.
-K
Comment #5
dan_aka_jack commentedI found that this patch output the name of the person who created the node, instead of the name of the user who submitted the last post. I've tinkered and I found that altering this section:
to this:
Fixes the problem.
Thanks,
Jack
Comment #6
Zen commentedOne of the JOINs from the original query that I removed needs to be back. Patch attached. I think I was testing this against the wrong page :S
Thanks Dan/Jack.
-K
Comment #7
Zen commentedComment #8
killes@www.drop.org commentedapplied
Comment #9
Zen commented