"Add new comment" link (or Reply with Advanced Forum) goes to core comment form

iva2k - June 27, 2009 - 05:42
Project:Node comments
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Forum topic is configured to have nodecomment type for comments.

Reply button in forum topic links to /reply/%#comment-form, and is getting to a regular Drupal-comment form, not nodecomment form. Submitting comment in that form creates Drupal-comment, as I can observe in /admin/content/comment list and in /admin/content/nodecomment-convert.

The forum topic page shows correct nodecomment form (if form is enabled in settings), and submits OK.

#1

Michelle - June 27, 2009 - 14:07
Title:Reply button on AF+nodecomment gets to Drupal comment form, not nodecomment» Reply link goes to core comment form when comment form on seperate page
Project:Advanced Forum» Node comments
Version:6.x-2.x-dev» 6.x-2.x-dev

Wrong queue... Moving.

Michelle

#2

Michelle - June 27, 2009 - 14:08
Priority:normal» critical

Actually, this is pretty critical. Bumping priority. (And, yes, I did look and confirm the bug as well)

Michelle

#3

Michelle - June 27, 2009 - 14:13
Priority:critical» normal

Oh ffs... I should not try to test something when I first wake up. The node type is called comment. Duh. Ignore my reply for now. Looking again, it appears I can't repro this after all. I'll look again when I've had some breakfast and wake up a bit. :)

Michelle

#4

Michelle - June 27, 2009 - 14:43

Ok, I've played with this some more and still can't repro it. Sorry for jumping the gun. When I saw the link went to node/add/comment I saw the word "comment" there and thought it was adding a comment. It wasn't until after I hit submit that the word "node" perculated into my sleepy brain. :)

I did find something weird, though... When flipping back and forth between comment form on the same page and comment form on a different page, I somehow managed to break it so nothing displays except the top node. I'll investigate that more and file a new issue if it turns out to not be user error. But thought I'd mention it in case anyone else wants to look into it in the mean time.

Michelle

#5

iva2k - June 28, 2009 - 00:02

Actually, in my case it was "comment form on node page" configuration. The form in the node page and forum topic page was indeed "Comment/nodecomment", which is expected. But there is still a "Reply" button in the bottom area of AF topic view. That button opens core comment form (unexpected), regardless of the "Forum topic" content type setting for comments to use "Comment" content type from nodecomment.

Note to self: the above statement contains 8 words "comment" and will confuse anyone. Trying to rephrase:

I have AF and nodecomment installed.
I have "Forum topic" type and "Comment" type in Content types.
"Forum topic" type is set up to use "Comment" type for comments, which is a nodecomment provision.
Other "forum topic" settings:

  • Default display mode: Flat list - expanded
  • Location of comment submission form: Display below post or comments.

In Forum topic view (/node/%) there are "Post Reply" (top area) and "Reply" (bottom of topic) buttons.
"Post Reply" button opens path /node/%#node-form (as expected)
"Reply" button opens path /comment/%#comment-form (not expected)
The latter path (/comment/%#comment-form) shows form that posts core comment, bypassing the nodecomment setting to use node of type "Comment"
(Note: % above is node id)

Does that explain the problem better?

#6

Michelle - June 28, 2009 - 00:21

I still can't reproduce it... And that doesn't actually make any sense. You said the "post reply" button is correct but the "reply" button isn't? Yet the "post reply" button gets its path from the "reply" one, which is provided by comment/nodecomment. So they would have to either both be right or both be wrong.

Michelle

#7

iva2k - June 28, 2009 - 03:13

I know reproducing a bug can be hard - there are so many variables there...

I enabled anon comments on that test site. Please see for yourself how links actually turn out here:
http://qphy.org/node/7

#8

Michelle - June 28, 2009 - 03:25

Your "comment" at the bottom of the form has the option to select what forum it should go into. That looks to me like you have set your "comment" node type to be allowed to be posted in the forum, which it shouldn't be. I don't know if that's causing the results you're getting, but undoing that would be a good first thing to try.

Michelle

#9

iva2k - June 29, 2009 - 02:55
Priority:normal» critical

Thanks for the information - I followed your pointer, and removed Comment content type from Forum vocabulary. It did not change the link.

I did a complete uninstall of all modules from comment up (forum, af, nodecomment, comment upload, and a bunch of others). Then I reinstalled nodecomment & AF, letting them pull in only modules they require. Same result - reply button in forum topic points to core comment.

One more observation - reply button in comment nodes point to proper form.

I consider that this cannot be used on production site, because forum users will click on the reply button and screw the forums up, so bumping it to critical.

#10

iva2k - July 8, 2009 - 06:06
Title:Reply link goes to core comment form when comment form on seperate page» "Add new comment" link (or Reply with Advanced Forum) goes to core comment form
Priority:critical» normal
Status:active» duplicate

I attacked this problem myself, and was able to locate the offending code in... acquia_marina theme. It blindly replaces whole 'comment_add' link with hard-coded href, apparently copied from comment.module. See #328055: Does not work with Nodecomment module. I'll keep this bug in nodecomment queue for others to be able to find it. That may explain why Michelle was not able to reproduce it, if she used a different theme.

#11

Michelle - July 8, 2009 - 12:46

Oooh, yeah, they're doing quite a bit of manipulation on the links. That's going to interfere with AF a lot. Which sucks because that's one of the most popular themes. I hope we can find a way to work together. I've left a comment over there.

Michelle

 
 

Drupal is a registered trademark of Dries Buytaert.