Getting the warning: "Strict warning: Only variables should be passed by reference in region_blocks_block_view() (line 123 of /.../sites/all/modules/contrib/region_blocks/region_blocks.module)."

This is due to the following line: $block['content'] = render(block_get_blocks_by_region($name));

render() is accepting a variable passed by reference, but we're passing it the result of block_get_block_by_region() which returns a value.

Storing the result of that function in a new variable and then passing the variable to render() should fix the issue. Patch on the way...

Comments

amklose created an issue. See original summary.

amklose’s picture

amklose’s picture

Status: Active » Needs review

  • amklose authored 1335c72 on 7.x-1.x
    Issue #2979151 by amklose: Only variables should be passed by reference...
jnettik’s picture

Status: Needs review » Fixed

Awesome. Thank you for the fix. It's been applied and I'll be rolling out a new release shortly.

Status: Fixed » Closed (fixed)

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