Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just installed ajax_comment and comment bonus api and when try to submit an comment I get the errror:
An Error occurred.
/ajax_comments/js
(no information available).
Comment | File | Size | Author |
---|---|---|---|
#8 | ajax_comments_basepath.patch | 638 bytes | jcmarco |
Comments
Comment #1
mr.alinaki CreditAttribution: mr.alinaki commentedYou should install -dev version.
Comment #2
dishui CreditAttribution: dishui commentedI have tried the dev version and get the exact same error.
Comment #3
dishui CreditAttribution: dishui commentedanybody has some comments on this?
Comment #4
dishui CreditAttribution: dishui commentedusing xmlhttp tracing, I find why this problem occur:
the comment is actually submitted, if I refresh the page, the new comment showes up. However, firebug console showes a problem with jquery.js line 2806:
// Send the data
try {
xhr.send(s.data);
} catch(e) {
jQuery.handleError(s, xhr, null, e);
}
here is the trace:
The response headers shows that:
Content-Length 0
the Request Headers shows that:
Content-Length 183
Comment #5
Aniara.io CreditAttribution: Aniara.io commentedWas this fixed in recent versions? I'm also getting the same problem as #4.
Comment #6
bflora CreditAttribution: bflora commentedgetting same problem with both 6.1.8 and dev-6.1.x
Comment #7
oboz CreditAttribution: oboz commentedI change path "ajax_comments/js" in all files to "ajax_comments/jsa"
But I have no idea what the problem.
Comment #8
jcmarco CreditAttribution: jcmarco commentedThe problem is because there is no basePath in line 410,
This error only happens if Drupal is not installed in the web server root
Comment #9
zarudnyi CreditAttribution: zarudnyi commentedUnfortunately patch don't work for me.
Comment #10
neochief CreditAttribution: neochief commentedjcmarco, thanks, your patch makes sense! Commites to dev. Does this patch fix issues for anybody else in thread?
Comment #11
kruser CreditAttribution: kruser commentedI am getting this error with the March 14 dev release.
But now I'm also getting an error notice.
Comment #13
core44 CreditAttribution: core44 commentedI have tried both the latest dev release and stable release and I have this error when edit comments on both version.
An error occurred. <br />/ajax_comments/js<br />(no information available).
Anyone else still receiving this error? And any suggestions for a fix?
Comment #14
dinkydule CreditAttribution: dinkydule commentedI'm using the stable release (ajax_comment 6.x-1.8 and comment bonus api 6.x-1.x-dev) and I'm getting this error when I submit a comment. After refreshing the page, I can see that the comments have in fact been submitted.
Comment #15
dinkydule CreditAttribution: dinkydule commentedI solved my problem by changing the settings so that replying to a comment takes you to another page. I'm no longer getting an error message when I submit a comment, or reply to a comment.
Comment #16
toemaz CreditAttribution: toemaz commentedIf you have the devel module spitting out some extra data at the end of the requests, use
If not, you may get the error as submitted in the title.
Comment #17
alomari-1 CreditAttribution: alomari-1 commentedany update?? i am getting this problem after upgrading my drupal 6.19 to pressflow 6.22
any idea about the reason??
Comment #18
manjeet CreditAttribution: manjeet commentedi was facing the same issue, the reason for the same was - i changed the text of the Comment submit form from 'Save' to 'Post Comment'.
It was failed to enter any of these 2 conditions:
if ($form_state['values']['op'] == t('Preview')) {
$output = '
';
if ($output && $form_state['values']['pid']) {
$output = '
}
}
elseif ($form_state['values']['op'] == t('Save')) {
$output = '
';
}
I renamed by button back to save and it worked. :-)
Comment #19
terbs CreditAttribution: terbs commentedI had this same error. My issue was also the same as #18, the error was caused by a separate module doing a form alter on the submit button.
Comment #20
calefilm CreditAttribution: calefilm commentedThanks Manjeet! That was my problem also.
Comment #21
webpavilion CreditAttribution: webpavilion commentedI had this bug. Because of here this lines in nginx:
need to add \. like this:
and everything works well.
Comment #22
AlsStill having this problem with the latest 6.x versions.
I confirm that Manjeet's solution at #18 works also with translations: I had renamed the post button "Invia" (Italian for "send"), switched it back to "Salva" ("save") and the error went away.
Comment #24
qzmenkoIssue is closed because 6.x version is unsupported. Feel free to open new issue for 7.x or 8.x versions of module.