Title: Comments form is broken sometimes
Last modified: January 8, 2024

---

# Comments form is broken sometimes

 *  Resolved [oscarlidenbrock](https://wordpress.org/support/users/oscarlidenbrock/)
 * (@oscarlidenbrock)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/comments-form-is-broken-sometimes/)
 * On my website I’m using the Jetpack comment form, and on some occasions and completely
   randomly, the form is not displayed, causing a JS error that says “Uncaught TypeError:
   form is null”.
   The code in the ajax response that return this bug is this:
 * if ( protocol ) {
    input = document.createElement( ‘input’ ); input.type = ‘hidden’;
   input.name = ‘_source_protocol’; input.value = protocol; form = document.getElementById(‘
   commentform’ ); form.appendChild( input );}It seems that the problem is that 
   it does not find the form #commentForm in the HTML but it does exist.This error
   appears on random pages and sometimes it resolves itself, without doing anything,
   other times it persists for a long time.The problem is not the connection with
   Jetpack because the form works on other entries and I have also tried several
   times to disconnect and reconnect without solving the problem.
    -  This topic was modified 2 years, 4 months ago by [oscarlidenbrock](https://wordpress.org/support/users/oscarlidenbrock/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcomments-form-is-broken-sometimes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [oscarlidenbrock](https://wordpress.org/support/users/oscarlidenbrock/)
 * (@oscarlidenbrock)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/comments-form-is-broken-sometimes/#post-17325915)
 * I have changed the iframe src parameter in the browser several times from the
   browser and after a few attempts, it has already loaded the form correctly.
   The
   problem is not with my browser’s cache, because I cleared it several times before
   and it did not solve the problem.EDIT: The error continue again in the same page
    -  This reply was modified 2 years, 4 months ago by [oscarlidenbrock](https://wordpress.org/support/users/oscarlidenbrock/).
 *  Plugin Contributor [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * (@drawmyface)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/comments-form-is-broken-sometimes/#post-17365605)
 * Hi there,
 * The issue you’re describing with the Jetpack comments form seems intermittent
   and it’s possible that there could be a conflict with another plugin or script
   on your site. Since you’ve already tried clearing your browser’s cache, the next
   step would be to troubleshoot for potential conflicts.
 * Here are some steps you can take to identify the issue:
    1. **Check for Plugin Conflicts:** Deactivate all other plugins except for Jetpack,
       and see if the issue persists. If the form works correctly, then reactivate 
       your plugins one by one until you recreate the issue. This will help pinpoint
       the conflicting plugin.
    2. **Check your Theme:** Temporarily switch to a default WordPress theme like Twenty
       Twenty-One to see if the issue might be with your current theme.
    3. **Browser Extension Conflict:** Test the page in an incognito window or different
       browsers to rule out any browser extension conflicts.
    4. **Server-Side Caching:** Check with your hosting provider if there are any server-
       side caching configurations that could be interfering with the form’s functionality.
    5. **Content Delivery Network (CDN):** If you are using a CDN like Cloudflare, 
       try disabling it temporarily or check for any specific rules that might be causing
       the issue.
 * If none of these steps resolve your issue, could you verify if the issue is happening
   on specific posts or pages, or if it seems to be completely random across your
   site?
 *  Plugin Contributor [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * (@erania-pinnera)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/comments-form-is-broken-sometimes/#post-17386327)
 * Hi [@oscarlidenbrock](https://wordpress.org/support/users/oscarlidenbrock/),
 * Do you have updates about that? We usually close inactive threads after one week
   of no movement, but we want to make sure we’re all set before marking it as solved.
   Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Comments form is broken sometimes’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [form](https://wordpress.org/support/topic-tag/form/)

 * 3 replies
 * 3 participants
 * Last reply from: [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/comments-form-is-broken-sometimes/#post-17386327)
 * Status: resolved