WordPress review form sends empty data on woocomerce product pages
-
For some reason review form on products page is not sending any data from it. I simplified my code in reviews tab to make sure it is not my mistake:
$postid = get_the_ID(); comment_form( '', $postid );
The error I get after submitting is:
Duplicate comment detected; it looks as though you’ve already said that!
I figured it’s because when wp-comments-post.php receives nothing it puts empty for everything in database. if I delete that comment it would submit one time and then same error.
The weirdest thing is that I use reviews in another place on the site and it is working fine, although it uses:
if (comments_open() || '0' != get_comments_number()) comments_template(); to submit reviews.
I hope someone could help me I spend 5 hours trying to solve it and didn’t get any closer. Thanks!
- The topic ‘WordPress review form sends empty data on woocomerce product pages’ is closed to new replies.