Posting comments on NON english pages throws a HTTP error and freezes the page reload

Created on 13 November 2012, over 12 years ago
Updated 15 January 2013, over 12 years ago

I just started working on making my site multilingual and noticed that the AJAX comments isn't compatible. Basically when a user is browsing in NON English (on my site, that would be Japanese or Chinese) and attempts to post a comment, it shows the processing bar and then shows a pop up window that states "An HTTP error 0 occurred. /ja/ajax_comments/js.

And the loading bar stays on the page, the user has to refresh the page to clear the error. The comment actually gets posted, but throwing the error and requiring the user to reload the page is not an option. Anyone know why this is happening or experiencing the same thing?

I can't really use this module if I don't find a solution to this problem and hoping to find that solution before I am ready to go live with the multilingual version. Thanks!

πŸ› Bug report
Status

Needs work

Version

1.8

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States drupalfan81

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Hello,
    It sounds like you're facing a common issue with AJAX comments on your Drupal multilingual site: an "HTTP error 0" when users try to post comments on non-English pages (like Japanese or Chinese). This usually points to a JavaScript error or an incorrect AJAX callback URL specific to the translated paths. The comment actually posts, but the error message and page freeze are a definite problem. To fix this, you'll need Prepaid Card Status to inspect your browser's developer console for JavaScript errors and network request issues when the problem occurs. Also, verify your ajax_comments module settings and Drupal's core multilingual configuration to ensure paths and translations are handled correctly for AJAX requests.

Production build 0.71.5 2024