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.
Using invite_by_email, when email subject or body is not editable invite_by_email_form_invite_form_alter()
sets the subject and body types to hidden
. This is fine on PHP 7.0, but it does not work on PHP 7.1.
Error: Cannot create references to/from string offsets in drupal_array_set_nested_value() (line 6786 of /var/aegir/platforms/drupal-7.57/includes/common.inc).
Lots of helpful information from David_Rothstein, summed up in his patch here, led me to do the same with Invite.
Comment | File | Size | Author |
---|---|---|---|
invite-type-hidden.patch | 739 bytes | jacob.embree |
Comments
Comment #2
renatogReally makes sense.
Good catch!
Comment #4
renatogCommitted to dev branch: 7.x-4.x
Best,
Comment #6
Paul Webster CreditAttribution: Paul Webster as a volunteer commentedI just ran into the same issue.
Fix has not yet made its way into 7.x release.
I worked around it by enabling editing of email invite rather than patching the code.
However, if I can make some time I plan to try out the patch as well.