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.
Hi, I have created a default relationship and after saving it, I receive the following error.
Strict warning: Only variables should be passed by reference in user_relationship_defaults_add_form_submit() (line 167 of C:\_BACKUPS\DrupalCore7.12\drupal-7.12\sites\all\modules\user_relationships\user_relationship_defaults\user_relationship_defaults.module).
Please advise on next steps.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#2 | creating-default-relationship-gives-error-1538990-2.patch | 952 bytes | thirdender |
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedChanging component.
Comment #2
thirdender CreditAttribution: thirdender commentedarray_shift
is looking for a variable. The code still works as is, but the error can be avoided by saving the results ofuser_load_multiple
to a variable, then passing that variable toarray_shift
.Comment #3
Raven_MacLean CreditAttribution: Raven_MacLean commentedIs there an instruction manual somewhere on how to actually apply this (or other) patches? I am having this same error currently...but I'm a bit green when it comes to code or anything even resembling it. lol how do I access where the file is that I am supposed to edit (I am assuming I am supposed to copy/paste/replace) this code in the patch?
Comment #4
Simon Georges CreditAttribution: Simon Georges at Makina Corpus commentedhttps://www.drupal.org/patch/apply is the official (Drupal) documentation, I think.
Comment #6
heylookalive CreditAttribution: heylookalive commentedNice one @thirdender, committed!