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.

CommentFileSizeAuthor
invite-type-hidden.patch739 bytesjacob.embree
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jacob.embree created an issue. See original summary.

renatog’s picture

Status: Needs review » Reviewed & tested by the community

Really makes sense.

Good catch!

  • RenatoG committed 340eccc on 7.x-4.x authored by jacob.embree
    Issue #2955023 by jacob.embree, RenatoG: Error: Cannot create references...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Committed to dev branch: 7.x-4.x

Best,

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Paul Webster’s picture

I 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.