Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Getting the following error on /user for non-logged in users:
Notice: Undefined offset: 1 in redhen_contact_form_user_register_form_alter() (line 1038 of /Users/isovera/projects/accjh/accjhd7/docroot/profiles/redhen_demo/modules/contrib/redhen/modules/redhen_contact/redhen_contact.module).
when visiting /user as an anonymous user.
To recreate this issue:
- Enable RedHen Contact Module
- Enable Create Contact on Registration option
- Log out and view /user as an anonymous user
This is pretty simple fix, the code is just assuming that there are at least two layers to the path where the form is embedded, the issue is that the form can be embedded at any path.
Comment | File | Size | Author |
---|---|---|---|
#3 | redhen-register-form-warning-2561223-1-D7.patch | 3.54 KB | christophersmith262 |
Comments
Comment #2
christophersmith262 CreditAttribution: christophersmith262 commentedComment #3
christophersmith262 CreditAttribution: christophersmith262 commentedComment #4
christophersmith262 CreditAttribution: christophersmith262 commentedComment #5
levelos CreditAttribution: levelos at ThinkShout commentedThanks @christophersmith262, although I can't recreate. Can you provide any more insight as to your setup?