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.



Simon Georges’s picture

Component:Code» Defaults

Changing component.

thirdender’s picture

array_shift is looking for a variable. The code still works as is, but the error can be avoided by saving the results of user_load_multiple to a variable, then passing that variable to array_shift.

Raven_MacLean’s picture

Is 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?

Simon Georges’s picture

https://www.drupal.org/patch/apply is the official (Drupal) documentation, I think.

heylookalive’s picture

Version:7.x-1.x-dev» 7.x-1.0-alpha5
Status:Active» Fixed

Nice one @thirdender, committed!

Status:Fixed» Closed (fixed)

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