The ajax comment works perfectly fine. However, when a user clicks saves, the comment is posted twice. Any particular reason why this might be happening? --- Please help!

Comments

cesargalindo’s picture

I'm seeing the same thing but it's random for me. At times the AJAX processing images is not displayed when a user clicks the save button. Usually happens after you entered the second comment sequentially on within the same blog. It's probable some users click the save button "to post a comment" more than once and in turn causes multiple comments to get stored??

nigma3d’s picture

I am having the same problem, every single time I submit a new comment, it goes into the database twice. Any ideas?

nigma3d’s picture

I found the potential issue. I commented out

  form_execute_handlers('submit', $form, $form_state);

From the function

function ajax_comments_submit($form, &$form_state) {

in ajax_comments.module and everything works fine now.

mailfox’s picture

Yes, it works even if the module is included album photos ... can be closed :)

klemendev’s picture

Issue summary: View changes

This problem is present in 8.x version too.

qzmenko’s picture

Status: Active » Closed (outdated)

Issue is closed because 6.x version is unsupported. Feel free to open new issue for 7.x or 8.x versions of module.