• Resolved asherwolfstein

    (@asherwolfstein)


    I have enabled JetPack comments on the site https://tinasfabricnook.com/ I have included a link to a post where the comment form should appear. The problem is that I’ve encountered twice now where there are periods that the comment form doesn’t load in the iframe. I have in my FireFox console the following JavaScript error:

    jetpack-comment:113:7 – Uncaught TypeError: form is null

    I believe this may be the source of the issue. I’d like to use JetPack comments on the site, but if I can’t reliably load a comment form, I’ll have to switch back to WordPress built-in commenting functionality.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter asherwolfstein

    (@asherwolfstein)

    Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @asherwolfstein

    I think the issue is happening because the Jetpack connection to your site is broken.

    While your site is publicly accessible, we cannot access your site’s XML-RPC file:

    https://tinasfabricnook.com//xmlrpc.php

    This file is used by Jetpack and other plugins and apps to connect to your site. It must return the following message:

    XML-RPC server accepts POST requests only.

    You can see a working example here:

    https://wp.cloud/xmlrpc.php

    Since your site returns a 403 error for this page, I would recommend that you check the following:

    1. Can you see the /xmlrpc.php file at the root of your WordPress installation when accessing your site via FTP? If you don’t, then please try re-installing WordPress. You can do this by going to the Dashboard -> Upgrades page, then click the “Reinstall” button.
    2. Do you use any security plugins that may block access to this file? If so, could you try to disable them? You might also want to check your site’s .htaccess file for any rules that might be blocking access to the xmlrpc.php file.
    3. Does your hosting provider block access to this file? If you don’t find any plugin that may block access to the file on your site, I would recommend that you get in touch with your host.

    Once we are able to access your site’s xmlrpc.php file, please try to reconnect your site:

    https://jetpack.com/support/reconnecting-reinstalling-jetpack/#reconnecting-jetpack

    Thread Starter asherwolfstein

    (@asherwolfstein)

    I currently host my website with a hosting provider that blocks xmlrpc.php requests by default. Their documentation reads:

    we get lots of attacks on xmlrpc.php., so we block all attempts by default. However, we whitelist applications with a good reputation that need to use it legitimately: like Jetpack.

    When I access xmlrpc.php from my browser, I get the same code (403).

    However, when I use the following URL for testing the Jetpack connection for the site: https://jptools.wordpress.com/debug/?url=https://tinasfabricnook.com it comes out as “Everything looks great!”

    From past experience, this response indicates that it is accessing xmlrpc.php correctly.

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi there –

    There was an issue with the connection when I initially tested a few moments ago on tinasfabricnook.com, but I made an adjustment on our end and it is now properly connected. I was able to post a test comment, can you check to see if you are able to comment now?

    On howtoprogramanything.com, when I try to comment on the URL that you shared I get a nonce verification error.

    In order to test this, the next step is to look for a theme or plugin conflict. The Health Check plugin’s “Troubleshooting Mode” is a good way to do this. It allows you to make changes to your site without them reflecting on the frontend. You can download that plugin here:

    https://ww.wp.xz.cn/plugins/health-check/

    Once you’ve installed and activated the plugin, you can go to Tools → Site Health:

    • Select the Troubleshooting tab and then click Enable Troubleshooting to automatically disable all plugins and add a new Troubleshooting Menu item in the toolbar at the top of the wp-admin dashboard.
    • From here, you can enable and disable plugins and change the theme for your site, but without affecting normal visitors to your site.

    I recommend starting by testing with a different theme. Please try with a default theme such as “Twenty Twenty” and see if you experience the same issue. If you do not, the issue is with your theme. You will need to reach out to your theme developers for a fix.

    If it isn’t a theme issue, you will need to test for a plugin conflict. Within Health Check, please disable all plugins other than Jetpack and test again. If it works as expected, you know that the issue is with one of your plugins. Please enable your plugins one at a time, testing after each one, until you encounter the issue again. Once you do, you will know which plugin is causing the issue. At that point, you can either leave it disabled or reach out to the developers for a fix.

    Let us know what you find out.

    Thread Starter asherwolfstein

    (@asherwolfstein)

    Thank you for your reply. I apologize for the long time between posting, but I believed this was no longer a problem. Today I noticed that the issue hasn’t been resolved satisfactorily and that there are times that the comment form does not load on tinasfabricnook.com (like today, 3/15/2023 at approximately 2:45-3:00 PM Mountain time).

    Today I disabled all plugins, and reverted to the twentytwentythree theme. I enabled only Jetpack. I have also disabled any caching mechanisms on my host that might interfere (no caching is being done). This would theoretically be like a new WordPress install, as you recommended. When I loaded a post (https://tinasfabricnook.com/blog/featured-products/half-square-triangles-the-trimmer/) the comment form still did not load.

    In the console there were error messages similar to what I posted before. Particularly these lines in jetpack-comment:

    form = document.getElementById( 'commentform' );
    form.appendChild( input );

    It reported that the form variable was null (not an object), and I verified that because in the iFrame loaded, a (form) element with id ‘commentform’ didn’t even exist at that time. I’m led to believe that incomplete markup/code is being delivered through the iFrame from Jetpack servers at some point.

    Unfortunately, I did not use the Health Check plugin you recommended (though I probably should have). Due to disabling all plugins, then re-enabling Jetpack (and reconnecting), and THEN restoring my database after theme switching (just to make sure everything was exactly as it was before I troubleshooted), I had to reconnect my site (tinasfabricnook.com) to the Jetpack servers for a final time. After I fully reconnected my WordPress.com account (@originalpursuitsllc), mysteriously the problem disappeared, and the comment forms began loading again.

    I’m hoping this can shed some light on potential intermittent loading issues for WordPress Jetpack enabled comments. I have strived to eliminate the possibility of interfering caching, themes and/or plugins. There are times it seems that the iFrame contents delivered by the Jetpack servers are not set-up correctly, fail on a Javascript error (form variable is null and not on object), and fail to load.

    Thanks,

    Asher

    Plugin Support Animesh Gaurav

    (@bizanimesh)

    Hey Asher – thanks for the detailed report and I’m glad the issue has been resolved now. In case the issue happens again, please feel free to reach us to have investigate it; however, the site is connected to Jetpack successfully so the issue should not come now. 🙂

    Thread Starter asherwolfstein

    (@asherwolfstein)

    I just installed and connected Jetpack to asherwolfstein.com

    Once again, Jetpack-enabled comments aren’t loading. I have captured what I’ve been saying in screenshots. I believe that, for whatever reason, the response coming from the Jetpack servers that fills the iframe is malformed. Maybe it’s something on my end, but I can’t determine what that is at this time. This is on a clean 6.2 install, twentytwentythree theme, a couple pages, and I tried it with no plugins but Jetpack. Jetpack debug reports no errors.

    This seems to eventually resolve, which then leads to this issue being “resolved” here, but it’s not resolved if this keeps happening intermittently.

    I’m not sure what else to do at this time, but I thought you should know this was occurring at March 30, 2023 9:44 PM Mountain Time.

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @asherwolfstein

    I’m sorry to hear that you continue to have trouble here.

    I have made an adjustment on our end to how Jetpack communicates with your site. This may help fix the issue. Please keep an eye on this and let us know if you see the issue again.

    Tracking down intermittent issues can be difficult, but I have re-opened the thread while we work on this.

    Hi @lastsplash — I have the EXACT same issue as @asherwolfstein describes on their site, is there any help you can send my way? Thank you!

    @larsica Could you please start your own thread, as per the Forum Welcome guidelines:

    https://ww.wp.xz.cn/support/plugin/jetpack#new-post

    That will give us the information we need so that we can help you, such as your website URL. Thank you!

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

The topic ‘Jetpack Comments Not Loading’ is closed to new replies.