I am new to drupal, so hopefully this isn't pilot error ;-)

I've noticed several problems with the forums module.

PROBLEM #1 - term with tid=1

When I first installed 4.5rc, I enabled the forums module from admin/modules.

I then went to admin/taxonomy (categories in the admin menu) and created vocabulary "Discussion Forums" of type "forum topic", hierarchy "multiple", "multiple select" checked, weight "0", and everything else blank.

I then added terms to the "Discussion Forums", entering a term name, but leaving everything else blank.

Whatever term is assigned tid=1 in the mysql term_data table appears under forums as a "container", while the terms assinged to subsequent tid's appear as forums that can be posted to. If the tid's for two terms are swapped in the table (i.e. change tid=1 to tid=2, and tid=2 to tid=1) the one assigned tid=1 becomes the container that can't be posted to.

At first I thought I did something wrong, because when I delete the term that was the "container", and recreated it, it seemed that everything was fixed, but that was just because a new tid was assigned.

PROBLEM #2 -

This one I haven't figured out how to replicate yet, but at some point creating and deleting terms, vocabulary, and nodes associated with forums (all using the drupal interface "Delete" buttons/links, not messing with the mysql tables), I am now at the point where when I post a new topic to a forum, everthing works fine, EXCEPT that one the "forum" page, in the table with headings "topics" and "posts", the values always remain zero, and "last post" is always blank. Clicking on the name of the forum, which would normally display the posts in a table with the headings "Topic", "Replies", "Created", and "Last reply", are all blank. The hyperlink that normally shows up under on the "forum" page under "topics" which would normally display something like "3 new" to indicate that there are three new posts, now is incremented with negative numbers. (i.e. 1 new post shows "-1 new", two new posts shows "-2 new", etc.).

The only way to view the topics posted, is to view them from the home page (if they were promoted), or from a link in the logs. There, if one goes to the edit tab, the forum (term) where they were supposed to be posted is selected correctly, they just don't show up there anymore. I deleted everything I could think of related to forums to try to start fresh, but something is still messed up.

CommentFileSizeAuthor
#2 drupal_481.7 KBxolotl
#1 drupal_4466.77 KBxolotl

Comments

xolotl’s picture

Title: Forum problems » Forum overview listing displays all node types as new topics w/negative #s
Version: 4.5.0-rc »
StatusFileSize
new66.77 KB

Using post-4.5.0-rc drupal cvs HEAD:

The forums module seems to display any/every node associated with a taxonomy term as a "new" forum topic in the forum overview listing (ie, domain.com/forum), even when the nodes are not forum topics. (This site will use the same vocabulary used for forums to categorize other node types.)

Attached screenshot shows example forum overview listing...in this case none of the forums have any topics yet, but you can see how other nodes associated with the same taxonomy terms are recorded as (negative) new topics.

PHP 4.3.8/Apache/1.3.31/mySQL 4.0.20/Linux

xolotl’s picture

Assigned: Unassigned » xolotl
StatusFileSize
new1.7 KB

The function _forum_topics_read was not returning only nodes of type 'forum' resulting in the forum overview listing counting all node types as topics; attached patch modifies queries to return counts of only 'forum' type nodes.

xolotl’s picture

Note that patch supplied in follow-up #2 above only fixes problem #2 described by stelman in original bug report. I haven't seen the same issue stelman describes in problem #1.

dries’s picture

Committed the patch. Thanks! Marking this 'active' as the first problem is still pending.

stelman’s picture

Thanks for the patch, but it does not seem to fix problem #2. Feel free to try posting to http://www.rioterracehoa.org/drupal (login:test, password:test) to see this in action.

xolotl’s picture

Assigned: xolotl » Unassigned

Unassigning myself as I haven't myself replicated "PROBLEM #1 - term with tid=1" and therefore can not fix it.

stelman: you've probably checked this, but I'm wondering if your issue isn't simply that under "admin/settings/forum", you have a certain term (with tid=1) highlighted as a container? if so, that's a feature not a bug ;)

BTW: it's a good practice to deal with only one bug per report, so when one is solved, the other doesn't keep it alive as here

stelman’s picture

See this post for a possible cause:

http://drupal.org/node/13081

I haven't test this yet, but perhaps disabling the comment module after posts have been made causes this anomaly?

dries’s picture

Status: Active » Fixed

This has been fixed in CVS HEAD. Please reopen if not.

Anonymous’s picture

Status: Fixed » Closed (fixed)