[Solved] Need to refresh page before the comment appears
Hello, I really like using wpdiscuz on my website, it adds many important features that I need. The only problem I have is that whenever a user submits a comment, nothing happens unless they refresh the page (there is a loading animation, but then it disappears and nothing else happens). If the user tries hitting the Post comment button again, there is an error that's saying Duplicate comment detected... Only after they refresh the page they will see that their comment actually got submitted, but this is very user-unfriendly in my opinion.
I tried to test it in different ways, and I see this problem only occurs when the comment is held for moderation. If the comment is automatically approved, then it appears right away in the comment section there is no need to refresh. Unfortunately, this is very important to me to approve all comment on my website manually, so this problem will appear for every user, and people are telling me it becomes annoying.
I tried to find the plugin conflict, but I couldn't. I only didn't deactivate Elementor, because I was worried I will lose all my pages I created with it. I also tried disabling caching in .htaccess but it also didn't change anything.
Maybe there is a simple solution, like a piece of code I can add to refresh the page after the comment is added? Please help me get through this issue, thank you
This is one of the posts that has WpDiscuz enabled but in order to comment you have to register on the website. By default all registered users are Subscribers and their comments are not approved unless the Admin manually approves them, and this is when the problem occurs (when the comment is not approved the page needs to be refreshed to see the comment).
For now, I changed the default alert text from "Duplicate comment detected" to "Please refresh the page", to make it a bit less confusing to the users, but it is still confusing, unfortunately.
If you don't want to register, this is how it looks like for the user