Users of Better-WP-Security report this error often: A user tries to update their profile and then when they click Update, they see this in their browser:
Warning: Invalid argument supplied for foreach() in /home/xx/public_html/wp-content/plugins/better-wp-security/inc/secure.php on line 916
Warning: Cannot modify header information – headers already sent by (output started at /home/xx/public_html/wp-content/plugins/better-wp-security/inc/secure.php:916) in /home/xx/public_html/wp-includes/pluggable.php on line 934
There is a bug in the better-wp-security code. If you look at :916 in secure.php, you’ll find it’s in the function
strongpass(). So, to get rid of this error, do NOT use this feature “Enable strong password enforcement”. Ensure that it is not checked. Refresh your browser. The error should now stop.