Title: Error with hCaptcha array_filter() issue
Last modified: May 11, 2023

---

# Error with hCaptcha array_filter() issue

 *  Resolved [eugenio](https://wordpress.org/support/users/eugenio/)
 * (@eugenio)
 * [3 years ago](https://wordpress.org/support/topic/error-with-hcaptcha-array_filter-issue/)
 * I am writing to request assistance with an error that I am experiencing with 
   the hCaptcha for WordPress plugin. I have received an email from my website stating
   that there is a technical issue related to the plugin. The error message indicates
   that there is an issue with the `array_filter()` function and that the plugin
   is receiving a null value instead of an array.
 * I have visited my website and the page where the error was detected, and I have
   confirmed that there are visible issues. I have also checked the information 
   provided in the email, which includes the WordPress version, active theme, current
   plugin, and PHP version.
   I would appreciate any assistance you can provide in
   resolving this issue. Please let me know if you need any additional information
   from me. For your convinience I have added the error code below:
 * Error Details
   =============An error of type E_ERROR was caused in line 108 of
   the file /nas/content/live/intensivec/wp-content/plugins/hcaptcha-for-forms-and-
   more/src/php/Abstracts/LoginBase.php. Error message: Uncaught TypeError: array_filter():
   Argument #1 ($array) must be of type array, null given in /nas/content/live/intensivec/
   wp-content/plugins/hcaptcha-for-forms-and-more/src/php/Abstracts/LoginBase.php:
   108Stack trace:#0 /nas/content/live/intensivec/wp-content/plugins/hcaptcha-for-
   forms-and-more/src/php/Abstracts/LoginBase.php(108): array_filter(NULL, Object(
   Closure))#1 /nas/content/live/intensivec/wp-content/plugins/hcaptcha-for-forms-
   and-more/src/php/WP/Login.php(56): HCaptcha\Abstracts\LoginBase->is_login_limit_exceeded()#
   2 /nas/content/live/intensivec/wp-includes/class-wp-hook.php(308): HCaptcha\WP\
   Login->add_captcha(”)#3 /nas/content/live/intensivec/wp-includes/class-wp-hook.
   php(332): WP_Hook->apply_filters(”, Array)#4 /nas/content/live/intensivec/wp-
   includes/plugin.php(517): WP_Hook->do_action(Array)#5 /nas/content/live/intensivec/
   wp-login.php(1447): do_action(‘login_form’)#6 {main}  thrown
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-with-hcaptcha-array_filter-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [3 years ago](https://wordpress.org/support/topic/error-with-hcaptcha-array_filter-issue/#post-16769006)
 * This bug was already fixed in v2.7.0: [https://wordpress.org/support/topic/uncaught-typeerror-loginbase-php108/](https://wordpress.org/support/topic/uncaught-typeerror-loginbase-php108/)
 * Please update the plugin.

Viewing 1 replies (of 1 total)

The topic ‘Error with hCaptcha array_filter() issue’ is closed to new replies.

 * ![](https://ps.w.org/hcaptcha-for-forms-and-more/assets/icon.svg?rev=3026321)
 * [hCaptcha for WP](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/)
 * [Active Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/reviews/)

## Tags

 * [hcaptcha](https://wordpress.org/support/topic-tag/hcaptcha/)
 * [plugin](https://wordpress.org/support/topic-tag/plugin/)

 * 1 reply
 * 2 participants
 * Last reply from: [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/error-with-hcaptcha-array_filter-issue/#post-16769006)
 * Status: resolved