Trying to use the 7.x version I get the following warnings:
Warning: Call-time pass-by-reference has been deprecated in sites\all\modules\computed_field\computed_field.module on line 163
Warning: Call-time pass-by-reference has been deprecated in sites\all\modules\computed_field\computed_field.module on line 175
Warning: Call-time pass-by-reference has been deprecated in sites\all\modules\computed_field\computed_field.module on line 184
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | patch1.patch | 1.81 KB | Anonymous (not verified) |
| #3 | computed_field_993576.patch | 4.4 KB | mchelen |
Comments
Comment #1
ryivhnn commentedSearch for &$ in computed_field.module and delete the &, if you haven't already.
Comment #2
aren cambre commentedThis eliminated the error messages for me.
Comment #3
mchelenHere is a patch for computed_field.module that replaces all instances of &$ with $ as suggested by #1. This appears to eliminate the warnings.
Comment #4
Anonymous (not verified) commentedYou should only replace the &$'s with $ is calls to _computed_field_compute_value(). The function definitions need to be declared as references so they correspond with the API doc. Also makes a difference if any of the referenced structures are modified.
Attached patch does that and also get's rid of a 'variable not defined' warning when enabling the module when there are no defined computed_field fields in use.
Comment #5
bfroehle commentedPatch is in the wrong format (apply with patch, not patch -p0), but I'll still mark as RTBC.
Comment #6
mchelenAh yes, the patch from #4 works, thanks!
Comment #7
Moonshine commentedPatch from #4 committed, thanks!