Title: Error posting comments
Last modified: August 21, 2016

---

# Error posting comments

 *  Resolved [juventuz](https://wordpress.org/support/users/juventuz/)
 * (@juventuz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/)
 * When logged in I can comment without an issue, but when not logged in, or when
   readers are wanting to comment the following error occurs.
 * Go back and try again.
    Error: answer is wrong. Error: field should be empty.
 * [http://wordpress.org/extend/plugins/anti-spam/](http://wordpress.org/extend/plugins/anti-spam/)

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/error-posting-comments-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-posting-comments-1/page/2/?output_format=md)

 *  [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683478)
 * Submit url with the problem via [feedback form](http://web-profile.com.ua/feedback/)
   and I will check it.
 *  Thread Starter [juventuz](https://wordpress.org/support/users/juventuz/)
 * (@juventuz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683879)
 * Here is a link to the dev version of our site where the plugin is activated.
 * Now we get the error…
 * Go back and try again.
    Error: answer is wrong. [Current month ye@r day*] Error:
   field should be empty. [Leave this field empty*]
 * I deleted the old plugin, and uploaded the latest version 1.6
 *  Thread Starter [juventuz](https://wordpress.org/support/users/juventuz/)
 * (@juventuz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683881)
 * I apologize, I left the link out… try here [http://dev.8bitsoul.com/gears-of-war-judgement/](http://dev.8bitsoul.com/gears-of-war-judgement/)
 *  [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683882)
 * Anti-spam plugin has conflict with javascript from “Origin” theme.
 * The Anti-spam plugin answer question about current year instead of user via javascript.
 * You use the theme where text from label inserted into input value and works like
   placeholder.
 * So javascript from your theme ([custom.js](http://dev.8bitsoul.com/wp-content/themes/Origin/js/custom.js?ver=1.0))
   inserts into anti-spam inputs text from labels and it breaks the work of Anti-
   spam plugin.
 * This code does it:
 *     ```
       $comment_form.find('input:text, textarea').each(function(index,domEle){
       			var $et_current_input = jQuery(domEle),
       				$et_comment_label = $et_current_input.siblings('label'),
       				et_comment_label_value = $et_current_input.siblings('label').text();
       			if ( $et_comment_label.length ) {
       				$et_comment_label.hide();
       				if ( $et_current_input.siblings('span.required') ) {
       					et_comment_label_value += $et_current_input.siblings('span.required').text();
       					$et_current_input.siblings('span.required').hide();
       				}
       				$et_current_input.val(et_comment_label_value);
       			}
       		}).bind('focus',function(){
       			var et_label_text = jQuery(this).siblings('label').text();
       			if ( jQuery(this).siblings('span.required').length ) et_label_text += jQuery(this).siblings('span.required').text();
       			if (jQuery(this).val() === et_label_text) jQuery(this).val("");
       		}).bind('blur',function(){
       			var et_label_text = jQuery(this).siblings('label').text();
       			if ( jQuery(this).siblings('span.required').length ) et_label_text += jQuery(this).siblings('span.required').text();
       			if (jQuery(this).val() === "") jQuery(this).val( et_label_text );
       		});
   
       		// remove placeholder text before form submission
       		$comment_form.submit(function(){
       			$comment_form.find('input:text, textarea').each(function(index,domEle){
       				var $et_current_input = jQuery(domEle),
       					$et_comment_label = $et_current_input.siblings('label'),
       					et_comment_label_value = $et_current_input.siblings('label').text();
   
       				if ( $et_comment_label.length && $et_comment_label.is(':hidden') ) {
       					if ( $et_comment_label.text() == $et_current_input.val() )
       						$et_current_input.val( '' );
       				}
       			});
       		});
       ```
   
 * You can fix it by excluding anti-spam inputs from being processed via javascript
   placeholder script.
 *  Thread Starter [juventuz](https://wordpress.org/support/users/juventuz/)
 * (@juventuz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683883)
 * I’m sorry, but I’m not that familiar with js. How would I go about excluding 
   anti-spam inputs from being processed via javascript?
 *  [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683884)
 * I tried to fix it via js but have no luck.
 * So the easiest solution for you is to fix it via plugin patch.
    I made special
   version of anti-spam plugin for your case. Let me know if it worked.
 * [https://mega.co.nz/#!gYpRBK6C!ZYmfiRsrzfRA4MUOWGmRrHKy2wBbNxHUK2VXBgv2-IY](https://mega.co.nz/#!gYpRBK6C!ZYmfiRsrzfRA4MUOWGmRrHKy2wBbNxHUK2VXBgv2-IY)
 *  [simplefinanz](https://wordpress.org/support/users/simplefinanz/)
 * (@simplefinanz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683885)
 * Hi Vitaly,
 * I have same issue on my site, for example check page below:
    [http://simplefinanz.com/apple-earnings-release-q2-2013/](http://simplefinanz.com/apple-earnings-release-q2-2013/)
 * Tried your latest special version as well, without success.
 * Many thanks in advance for the help.
 *  [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683886)
 * [@simplefinanz](https://wordpress.org/support/users/simplefinanz/): I cannot 
   see hidden Anti-spam inputs on your site in comments form.
    Anti-spam plugin 
   use ‘comment_form’ action and I think it is missed somehow in your theme. You
   may check out how ‘comment_form’ action used on other themes with custom comments
   form (instead of default comment_form() function) and do the same with your theme.
 * Or just try to add this code to comments.php file before closing form-tag:
 *     ```
       <?php
       	do_action('comment_form()', $post->ID); // comment_form();
       ?>
       ```
   
 *  [simplefinanz](https://wordpress.org/support/users/simplefinanz/)
 * (@simplefinanz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683887)
 * Tried adding the code, same error:
    Error: empty answer. []
 * I have disabled the plugin until finding a solution.
 *  [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683888)
 * [@simplefinanz](https://wordpress.org/support/users/simplefinanz/):
 * > Error: empty answer. []
 * “Empty answer” means that you don’t have anti-spam inputs in your comments foorm.
   At the end of the form should be such html block:
 *     ```
       <p class="comment-form-anti-spam" style="clear:both;">
       		<label for="anti-spam-q">Current <span style="display:none;">month</span> <span style="display:inline;">ye@r</span> <span style="display:none;">day</span></label> <span class="required">*</span>
       		<input type="hidden" name="anti-spam-a" id="anti-spam-a" value="2013" />
       		<input type="text" name="anti-spam-q" id="anti-spam-q" size="30" value="1980" />
       	</p>
   
       	<p class="comment-form-anti-spam-2" style="display:none;">
       		<label for="anti-spam-e-email-url">Leave this field empty</label> <span class="required">*</span>
       		<input type="text" name="anti-spam-e-email-url" id="anti-spam-e-email-url" size="30" value=""/>
       	</p>
       ```
   
 * Sorry, I think I told you to add the wrong code.
    Try to add this code to the
   end of your comments form:
 *     ```
       <?php do_action('comment_form', $post->ID); ?>
       ```
   
 *  Thread Starter [juventuz](https://wordpress.org/support/users/juventuz/)
 * (@juventuz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683893)
 * webvitaly… I uploaded the new file you made for me. Unfortunately it didn’t work,
   the submit button no longer works once the plug-in is activated. I can fill out
   the comment form, but submit is not clickable. Once I turn off the plugin it 
   works.
 *  [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683895)
 * [@juventuz](https://wordpress.org/support/users/juventuz/):
 * I think I know where I made a mistake.
 * Please, try this one: [https://mega.co.nz/#!gVQ3nZCB!N7gYeQV9CkIyWXzBlFM5RjFxK6gr9KMUGGrSleWt_B4](https://mega.co.nz/#!gVQ3nZCB!N7gYeQV9CkIyWXzBlFM5RjFxK6gr9KMUGGrSleWt_B4).
   I hoppe this version will work for you.
 *  Thread Starter [juventuz](https://wordpress.org/support/users/juventuz/)
 * (@juventuz)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683903)
 * Thank you for your help. It works! I really appreciate you taking the effort 
   to fix the issue.
 * Thanks again!
 *  [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683904)
 * [@juventuz](https://wordpress.org/support/users/juventuz/):
 * You are welcome.
 * Just remember that you use separate branch version of Anti-spam plugin (because
   of conflicts with your theme) and it will not update from official repository.
   But don’t be afraid, it will block spam pretty good as main version.
 * If you will switch theme on your site than you may re-install [Anti-spam plugin](http://wordpress.org/extend/plugins/anti-spam/)
   and you will be up-to-date.
 *  [a.po123](https://wordpress.org/support/users/apo123/)
 * (@apo123)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/error-posting-comments-1/#post-3683941)
 * Hello webvitaly
    i’ha just installed your plug in into this website [http://armadiosemprevuoto.com](http://armadiosemprevuoto.com)
   but when i try to comment a post it gives me the same error of juventuz: Error:
   answer is wrong. [Current month ye@r day*] Error: field should be empty. [Leave
   this field empty*]
 * by the way, i tried even with the version you mentioned above but no way.. always
   the same error..
 * right now i need the comments to be active, so i need to deactivate the plugin,
   could you help me anyway?
 * thanks in advance

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/error-posting-comments-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-posting-comments-1/page/2/?output_format=md)

The topic ‘Error posting comments’ is closed to new replies.

 * ![](https://ps.w.org/anti-spam/assets/icon-256x256.gif?rev=3469595)
 * [Titan Anti-spam & Security – Brute Force Protection, 2FA & Spam Filter](https://wordpress.org/plugins/anti-spam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anti-spam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anti-spam/)
 * [Active Topics](https://wordpress.org/support/plugin/anti-spam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anti-spam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anti-spam/reviews/)

 * 24 replies
 * 5 participants
 * Last reply from: [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/error-posting-comments-1/page/2/#post-3683968)
 * Status: resolved