Hey everybody, yet again there's issues with Nonces. Both the Star Rating and the Comment Form does not work for many of my viewers/readers. They all have nonce issues. I've now tried every possible setting and added a ridiculous amount of exclusions to LiteSpeed, but the Issue persists, including in the Browser Console ("Nonce is invalid"). I also tried to use the Native AJAX for comments, this didn't resolve it too.
Here's my current settings.
I use BunnyCDN integrated directly into my hosting plan.
Hi,
- Please make sure you're using the latest version (v7.6.45) of the wpDiscuz plugin.
- Add the hook code to your active theme’s
functions.phpfile:add_filter('wpdiscuz_validate_nonce_for_guests', '__return_false');
Instruction:
https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/ - Clear all caches and check again.
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.
Thank you so much, that seems to be the solution. I was able to rate now. I'm now awaiting user feedback and if something happens again, i will reply to this thread. Have a great weekend! 🙂
I’ve encountered this issue as well (it was recently brought to my attention by users who couldn’t post comments and reached out to me through channels other than the blog). I resolved it by using the suggested filter (I created a custom micro-plugin to do this), but the question I’m asking myself is: is it normal to "lower security" by not validating the nonce for guest commenters?
Isn't there a solution that fixes the problem without forcing me to "turn off" a feature just to get it to work? Or am I thinking about this the wrong way?
Thanks! 😀
We are still trying to resolve this issue. Rolling back to 7.6.46 helped to a degree, but it is still occurring.
I was posting about this in another thread but it seems to have been locked - two posts of mine and one by another forum user have been awaiting moderation for several days.
Can we know why our posts are not being approved and if anything is being done to address the problem?
We are still trying to resolve this issue. Rolling back to 7.6.46 helped to a degree, but it is still occurring.
Hi @sophie,
We're getting lots of spam so sometimes your posts could be put under moderation automatically by the forum system. It doesn't mean we have blocked you. Please be patient and your post will be approved. Also we remove the duplicated topics and posts, it's hard to follow the same issue and support in different topics if the problem is the same.
Please do not contact us via a email address for plugin bugs or troubleshooting, the email support is for other issues. All wpDiscuz support specialists are here, we try to reply as soon as possible.
Regarding to the nonce issue:
We have release two updates during last few days so please make sure you use the latest version. Then please delete all plugins caches and make sure you've deleted your server side caches. For example WP Engine hosting service has backend cache in the website management dashboard that also need to be purchased, it depends on your hosting.
The nonce issue can also happen if your page is opened too long. This is the main reason why the nonce has been created by WordPress. I mean it has expiration period and if you keep the page opened for long time you'll get such problem as well.
We still check the cases and work on the plugin to cover all them, it seems there are multiple reason of this problem and we've already solved 99% of them. It's become very complex to find the rare cases. I think one of the rare case is yours. So please make sure the plugin is updated to the latest version and all kind of caches are deleted, then please share some URL where we can check it.
Hi all,
just wanted to add a quick follow-up: Do i still need the filter after the updates or has this been resolved in one of the updates you provided in the last week or two? 🙂




