I am unable to get the anonymous posting working; with previous dev I got 403 ajax error, current dev no error just not working, with current alpha2 I get 404 ajax error. Anonymous is able to post comments without the ajax comments system when on a blog post (ajax comments is in my blogs view). I am using Botcha to stop spam bots, but have tried switching this module off also.

CommentFileSizeAuthor
#4 ajax_comm1.jpeg207.58 KBonyxnz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

muschpusch’s picture

You put as component views integration: do you mean the views integration or just regular usage of ajax comments?

onyxnz’s picture

Views integration.

For instance, when alpha2 is installed, the error is :

An AJAX HTTP error occurred.
HTTP Result Code: 404
Debugging information follows.
Path: /ajax_comments/comment_form/ajax/100?tok=lmWRrrBpve4iPX0UyZPBUWZ3LYVcl061tf0Yf7SwDxU
StatusText: Not Found
ResponseText: ...

which is obviously the path created in line 50 of
..sites/all/modules/ajax_comments/views/ajax_comments_handler_field_ajax_add_comment.inc

With current dev, there is no error to screen, but no result either.

muschpusch’s picture

Please try the latest dev release even though i'm not sure if it will fix it... Could you provide a patch or some more debugging output since i'm quit busy at the moment....

onyxnz’s picture

FileSize
207.58 KB

Ok...
attached is a screen shot, after click ing the "add your voice to the conversation" link - which is produced by Views, and functions when logged in, to produce the form fields to comment.

This is the current dev version 16-Oct.

Firebug shows that the ajax response is 200 OK, but the JSON object 3 that has the form build inside it is not being inserted into the node, neither are the other objects containing the javascripts.

How does that insertion work (I guess another script is supposed to action that JSON?)

muschpusch’s picture

Ok it works like this:

the path is : /ajax_comments/comment_form/ajax/100 (except the 100 that's an argument)

So there must be some hook_menu entry defining that path (hint ajax_comments.module). That menu callback has some callback function. That builds the form and uses drupal's ajax api to return it. In that function most likely something goes wrong due to permissions (just a guess)

kmonty’s picture

Title: Anonymous posting » Anonymous commenters are hit with 404 error js alert

Changing the post title to make it more relevant.

tradenet’s picture

Issue summary: View changes

When permissions are set NOT to skip comment approval for any role or user, I am getting this ajax error or warning:

Invalid form POST data.

LOCATION "http://www.website.com/system/ajax"

formatC'vt’s picture

Component: Views integration » Code
Status: Active » Needs work

I confirm this bug in latest dev.
We can post new comments (when we leave "Your name" field blank), but we can't reply to comments (404 error)

formatC'vt’s picture

Status: Needs work » Fixed

Fixed. Try latest release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.