Comments count incorrect
-
The comments count is incorrect after reactivating jetpack. (No changes were made to site other than a period of 10 days between reactivating.) The comments count now is less than it should be?
-
Could you let me know where you see that incorrect comment count? Does it appear in your stats?
Could you also post your site URL here, so I can have a look?
If you want it to remain private, you can also contact us via this contact form:
https://jetpack.com/contact-support/Thanks!
The comments count appear incorrect in stats, the dashboard, and the comments page.
The site URL: https://www.spaceedge.com
That site doesn’t appear to be up right now:
https://i.wpne.ws/iVW0Could you take a look and let me know when it becomes accessible again?
Could you also tell me more about what you see on the Comments page. If the comment count is incorrect there, where do you go to check the correct number of comments on your site?
The site should be accessible now, (am using shared hosting, and cloudflare reverse proxy, had issue w/redirection in wp-config.php, hopefully it’s resolved.) https://www.spaceedge.com
As far as, how I can tell how many comments I have.
At the very bottom of the comments page the number of items is listed there.
Which is a lot more than the 4 that’s shown in stats and elsewhere.Thankyou
I’m afraid there are still some issues on your site; some of the pages aren’t available. This one in particular is used by Jetpack to communicate with WordPress.com and synchronize information about your site (like comments) with WordPress.com:
https://www.spaceedge.com/xmlrpc.phpUnfortunately, since the page is not accessible that communication and synchronization can’t happen.
Could you make sure that page is available, and let me know if that helps?
OK I have unblocked access to XML-RPC to allow only Jetpack IP’s. Let me know if it’s OK?
Now looks like the comments count are back to normal, except in jetpack stats it’s still incorrect?
Thankyou
- This reply was modified 7 years, 11 months ago by spaceedge.
I’m afraid access to XML-RPC is still blocked. The list of IPs you used is probably not up to date.
In general, I’d recommend against using an IP whitelist to protect your XML-RPC file. Whitelists have to be kept up to date, and make things hard every time you want to use a new service or app that relies on XML-RPC.
Instead of a whitelist, the most popular hosts out there use tools like fail2ban or ModSecurity, for example. On your end, you can use plugins like this one to disable access to one of the methods used by hackers. Since you’re using CloudFlare, you’re already protected by CloudFlare’s Web Application Firewall. And finally, Jetpack itself includes a module that will help against Brute Force attacks.
I hope this helps!
I removed the IP whitelist. Jetpack’s count for comments is still less?
Thankyou
Your Jetpack’s connection is working properly now.
Could you let me know the number of comments you see in the comments menu, vs. the number you get in Jetpack Stats?
Could you also let me know if you use Custom Post Types on your site that may include some comments?
I don’t believe am using any Custom Post Types.
Here’s the comments list: All (28) | Pending (1) | Approved (18) | Spam (9) | Trash (0)
And Jetpack: All time comments 9 only.
Thankyou
- This reply was modified 7 years, 11 months ago by spaceedge.
You appear to be using a few different Custom Post Types, and I wonder if the plugin that adds the Q&A is also storing data in comments.
Do you actually see 18 approved comments on your Comments page?
Yes there’s 19 approved comments as of now.
Is the plugin for the Q&A incompatible with the jetpack stats?I don’t know what plugin that is, but I’d be happy to give it a try. Could you let me know what plugin you used, so I can take a closer look and run some tests?
Thanks!
It’s this Q&A plugin I’m using. DW Question and Answer
Thankyou
Thank you! I think I found the issue. As I suspected, the plugin creates a Custom Post Type. The contents of that post type are not synchronized back with WordPress.com by default, so any comments left on those questions won’t be synchronized back to WordPress.com either, and won’t appear in comment stats.
To solve that issue, you’d have to explicitly allow that Post Type to be synchronized with WordPress.com, by adding the following to your theme’s functions.php file, or in a functionality plugin:
/** * Filter the list of Post Types available in the WordPress.com REST API. * * @param array $allowed_post_types Array of whitelisted Post Types. * @return array $allowed_post_types Array of whitelisted Post Types, including our 'ghactivity_event' Custom Post Type. */ function jeherve_allow_post_type_wpcom( $allowed_post_types ) { $allowed_post_types[] = 'dwqa-question'; return $allowed_post_types; } add_filter( 'rest_api_allowed_post_types', 'jeherve_allow_post_type_wpcom' );
This will have the added benefit of letting you access and edit questions from the WordPress.com interface, whether on WordPress.com or in one of the desktop apps. You can read more about it here:
https://jeremy.hu/manage-custom-post-types-wordpresscom/I hope this helps.
- The topic ‘Comments count incorrect’ is closed to new replies.