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.
I get the following warning:
Strict warning: Only variables should be passed by reference in profile2_regpath_block_view() (line 39 of...
You can fix this by changing line 39 in profile2_regpath_blocks.module from:
if ($profile_type = reset(entity_load('profile2_type', array($profile_id)))) {
into:
$profile_entity = entity_load('profile2_type', array($profile_id));
if ($profile_type = reset($profile_entity)) {
Comment | File | Size | Author |
---|---|---|---|
#6 | strict-warning_1833300_6.patch | 1.34 KB | msnassar |
Comments
Comment #1
kingfisher64 CreditAttribution: kingfisher64 commentedCan anyone who knows how to commit this to the latest dev? It's pops up with php5.4 installed I believe.
Many thanks Marty for posting the solution
Comment #2
grasmash CreditAttribution: grasmash commentedComment #3
kingfisher64 CreditAttribution: kingfisher64 commentedHas the fix by Marty been put into the latest dev? I thought I had the latest dev which is dated 25th May and this fix was needed.
Comment #4
grasmash CreditAttribution: grasmash commentedYes, it was pushed to the latest dev, which was built last night.
Comment #6
msnassar CreditAttribution: msnassar commentedThis also is needed for the last dev version (7.x-2.x-dev)...
Comment #7
JadH CreditAttribution: JadH commentedHi,
I tried applying the patch
I got the below
Comment #8
matt.rad CreditAttribution: matt.rad commentedAnd chance of getting this fix rolled into the module? Works fine for me on two different production sites.