Title: [Plugin: Better WP Security] Error when validating the profile page
Last modified: August 20, 2016

---

# [Plugin: Better WP Security] Error when validating the profile page

 *  Resolved [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [14 years ago](https://wordpress.org/support/topic/plugin-better-wp-security-error-when-validating-the-profile-page/)
 * When validating the profile page, I get:
    `E_WARNING: Invalid argument supplied
   for foreach()` It comes from `wp-content/plugins/better-wp-security/inc/secure.
   php` line 813.
 * [http://wordpress.org/extend/plugins/better-wp-security/](http://wordpress.org/extend/plugins/better-wp-security/)

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

 *  Thread Starter [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [14 years ago](https://wordpress.org/support/topic/plugin-better-wp-security-error-when-validating-the-profile-page/#post-2707012)
 * The solution is to replace `$userInfo->wp_capabilities` by `$userInfo->caps` 
   on line 813.
 * Can you please fix it in your next release ?
    Thanks.
 *  [b.l.k](https://wordpress.org/support/users/blk-1/)
 * (@blk-1)
 * [14 years ago](https://wordpress.org/support/topic/plugin-better-wp-security-error-when-validating-the-profile-page/#post-2707259)
 * The same has to be done in function `strongpass()` on line 914 in the same file.
 * Thank you
 *  [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * (@bit51)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error-when-validating-the-profile-page/#post-2707292)
 * This should have been fixed in 3.2.5. Please let me know if you experience any
   further issues.
 *  Thread Starter [Kerfred](https://wordpress.org/support/users/kerfred/)
 * (@kerfred)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error-when-validating-the-profile-page/#post-2707293)
 * There is still the same issue line 981 in version 3.2.5.
 *  [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * (@bit51)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error-when-validating-the-profile-page/#post-2707294)
 * Kerfred,
 * I’ve updated the code in the [development version](http://downloads.wordpress.org/plugin/better-wp-security.zip)

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

The topic ‘[Plugin: Better WP Security] Error when validating the profile page’ 
is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=2980272)
 * [Solid Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-error-when-validating-the-profile-page/#post-2707294)
 * Status: resolved