We have a complex user registration process. We are experiencing these notices/warning:
Notice: Undefined index: messages in user_registrationpassword_form_user_register_submit() (line 266 of /var/www/kbi.local/public_html/sites/all/modules/contrib/user_registrationpassword/user_registrationpassword.module).
Warning: Invalid argument supplied for foreach() in user_registrationpassword_form_user_register_submit() (line 266 of /var/www/kbi.local/public_html/sites/all/modules/contrib/user_registrationpassword/user_registrationpassword.module).
Notice: Undefined index: status in user_registrationpassword_form_user_register_submit() (line 273 of /var/www/kbi.local/public_html/sites/all/modules/contrib/user_registrationpassword/user_registrationpassword.module).
Warning: array_values() expects parameter 1 to be array, null given in user_registrationpassword_form_user_register_submit() (line 273 of /var/www/kbi.local/public_html/sites/all/modules/contrib/user_registrationpassword/user_registrationpassword.module).
I discovered that these issues arose because of missing status messages. I've added a quick check to make sure that the message exists before we attempt to remove it.
Patch attached.
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.