I am using the node_view template of panels and inserted the comment form and comment panes. When replying on a comment, everything behaves as expected. But when creating a new comment, the just created comment isn't being displayed. How could I fix this?

CommentFileSizeAuthor
#7 panels_incompatability-2016801-7.patch554 bytesdagomar
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

muschpusch’s picture

Status: Active » Postponed (maintainer needs more info)

Not sure if it's related but could you update to latest dev? Since this issue got committed it could work: #1511726: Multiple Panels comments append to top of page, not pane

Lukas von Blarer’s picture

Status: Postponed (maintainer needs more info) » Active

I am on the latest dev.

muschpusch’s picture

Assigned: Unassigned » muschpusch
Priority: Normal » Major
Status: Active » Needs work

i will have a look! Thanks for reporting!

tjhart87’s picture

I can also confirm there is an issue when using the separate form and and comment feed with panels. In order to see the comments the page has to be refreshed. The ajax submit isn't refreshing the separate panel node comments.

tjhart87’s picture

I also noticed today that if a user selects selects to reply, then cancels, and then selects reply again the form doesn't reload.

grahamC’s picture

For what it's worth, I've got similar problems trying to use AJAX comments along with Colorbox Node.

When a node is displayed in the Colorbox popup, it uses a different (custom) display other than "full". As comments are only automatically attached to the "full" display, the comments are added by calling comment_node_page_additions() manually, then unfortunately clobbering the div#comment-wrapper prefix/suffix instructions which AJAX comments needs.

This resulted in comments that didn't appear once submitted, which sounds a lot like the situation in here. For now, I've overridden my comment-wrapper.tpl.php to hardcode the #comment-wrapper element.

Ideally you'd want to hook into the comment module and add the wrapper there rather than using node hooks, but comment currently lacks any extensibility options that I can make out!

dagomar’s picture

Status: Needs work » Needs review
FileSize
554 bytes

I created a patch for this, see attachment and please verify! I just altered the output of the wrapper so it corresponds with that of the wrapper output of the node. They where not the same. This seems to work for me, note that this does not fix the issue with 'reply-cancel-reply', which I believe is unrelated.

muschpusch’s picture

Status: Needs review » Reviewed & tested by the community

looks good!

muschpusch’s picture

Status: Reviewed & tested by the community » Closed (fixed)

committed to current dev