Comments form is broken sometimes
-
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.
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:
- 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.
- 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.
- Browser Extension Conflict: Test the page in an incognito window or different browsers to rule out any browser extension conflicts.
- 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.
- 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?
Hi @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!
-
This reply was modified 2 years, 4 months ago by
The topic ‘Comments form is broken sometimes’ is closed to new replies.
(@oscarlidenbrock)
2 years, 4 months ago
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.
The page I need help with: [log in to see the link]