Title: php warning
Last modified: August 24, 2016

---

# php warning

 *  Resolved [raidentony](https://wordpress.org/support/users/raidentony/)
 * (@raidentony)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-warning-55/)
 * Hello,
 * I kept getting this in my PHP log:
 * [30-Apr-2015 10:32:37 UTC] PHP Warning: Missing argument 2 for anr_captcha_class::
   comment_verify() in /some/path/to/blog/wp-content/plugins/advanced-nocaptcha-
   recaptcha/anr-captcha-class.php on line 141
 * And by looking at the source code I guess here is the problem, in line 46:
    add_filter(‘
   pre_comment_on_post’, array(&$this, ‘comment_verify’) );
 * Seems that parameters are missing here. Can you please fix it in the next release?
   Thanks.
 * [https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/](https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-warning-55/#post-6078651)
 * Please change
 *     ```
       add_filter ('pre_comment_on_post', array(&$this, 'comment_verify') );
       ```
   
 * to
 *     ```
       add_filter ('pre_comment_on_post', array(&$this, 'comment_verify'), 10, 2 );
       ```
   
 *  Thread Starter [raidentony](https://wordpress.org/support/users/raidentony/)
 * (@raidentony)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-warning-55/#post-6078678)
 * That’s what I did.
 *  Thread Starter [raidentony](https://wordpress.org/support/users/raidentony/)
 * (@raidentony)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-warning-55/#post-6078682)
 * Just want to make sure I fixed it in a proper way. Thanks!
 *  [MailShark](https://wordpress.org/support/users/mailshark/)
 * (@mailshark)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-warning-55/#post-6079025)
 * Hi. Just recently started using this plugin and get the error as specified:
 * PHP Warning: Missing argument 2 for anr_captcha_class::comment_verify() in /some/
   path/to/blog/wp-content/plugins/advanced-nocaptcha-recaptcha/anr-captcha-class.
   php on line 141
 * Have checked line 46 and it has the “10, 2” options.
 * Any suggestions? thanks.
 *  [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-warning-55/#post-6079026)
 * [https://wordpress.org/support/topic/php-warning-report?replies=2#post-7241246](https://wordpress.org/support/topic/php-warning-report?replies=2#post-7241246)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘php warning’ is closed to new replies.

 * ![](https://ps.w.org/advanced-nocaptcha-recaptcha/assets/icon-256x256.png?rev
   =2961544)
 * [CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress](https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/php-warning-55/#post-6079026)
 * Status: resolved