After updating your plugin to V7.6.47 (loaded with a massive amount of security fixes), we can't get our comments to display any longer.
We're using the wpDiscuz setting, "Display [View Comments] button", when we click on "View Comments" nothing happens. Prior to the update, everything worked just fine. Yes, we cleared ALL cache layers after the update.
When logged in (backend), the comments display, but not when we're logged out. See below.
Please provide the direct URL where we can see the issue.
We see that you’ve also made some customizations. Please comment out the customizations and check again. The issue might be caused by the custom code you’ve added.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
I was facing the same problem after updating to wpDiscuz 7.6.47, where comments were not displaying on the frontend even though they existed in the database and the comment count was correct.
After some testing, I found that the issue was related to caching/optimization. Here’s what fixed it for me:
Cleared all caches (server cache, plugin cache, and CDN if used).
Disabled my optimization plugin temporarily.
Went to wpDiscuz → Settings → Comment Forms and re-saved the form.
Also re-saved Settings → Discussion in WordPress.
After doing this, the comments started displaying normally again.
If anyone else is facing the same issue, try clearing all caches and re-saving the wpDiscuz settings/forms. That solved it in my case.
Hope this helps someone.
Hey @JanyLin,
You rock. Great answer. Thank you. It solved our issue. After so many years, I never thought your additional cache-clearing steps (namely, 3. and 4.) would actually help after updating wpDiscuz. Never did that before. I have incorporated them into our standard procedure for clearing cache when wpDiscuz is updated.
Please take note and update your documentation to reflect @JanyLin's solution. Please be more specific when you advise your customers to "clear all cache."
After conducting multiple tests, I can confirm that Version 7.6.47 of your plugin conflicts with our caching plugin, FlyingPress. Version 7.6.46 of your plugin did not.
It appears the issue is AJAX related. Clearing cache did not help (not even the solution suggested by @JanyLin).
So, my solution for now is to bypass caching of our Posts using the PHP code snippet provided below.
I highly recommend gVectors' developers look into this bug. It appears others have the same issue.
Thank you.
--------------------
Code Snippet for Bypassing Caching of Posts (FlyingPress Solution):
add_filter('flying_press_is_cacheable', function ($is_cacheable) {
if (is_single() && get_post_type() === 'post') {
return false;
}
return $is_cacheable;
});
Since I updated to version 7.6.47, my readers can no longer post comments; they receive a "nonce is invalid" error. i have cloudflare + APO cloudflare
I don't have this problem when I bypass Cloudflare by hardcoding my server's IP address in the hosts file.
The only solution I found was to roll back to version 7.6.46, and that resolved the issue temporarly. Readers were complaining about no longer being able to comment on articles.
I'm waiting for a solution in a future plugin update.
I can confirm my issue also occurs with Version 7.6.46 (excluding my temporary solution posted above).
Details:
When I click on "View Comments" for the first time (refer to above screenshots), the comments are not displayed. However if I refresh the post or click on "View Comments" of another post (after the first click), the comments appear. When I downgrade to Version 7.6.45, everything works perfect.
Note:
I've been using wpDiscuz for approximately eight years with no major issues (i.e., bugs) until gVectors introduced the recent "Security Fixes" and filters into its plugin. Our website environment did not change, except for the usual PHP and Cache plugin updates.
I've already asked the team to check this issue. I'm currently waiting for their response and will update this topic as soon as I receive feedback.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
We kindly ask you to create a development/staging copy of your website on a subdomain and send the admin login details to info[at]gvectors.com so we can check the issue.
You can use theDuplicatorplugin to create the staging site.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.