Strict warning: Only variables should be passed by reference in panels_breadcrumbs_ctools_render_alter() (line 164 of /opt/development/yourhelps/sites/all/modules/panels_breadcrumbs/panels_breadcrumbs.module).
dd

Comments

rogical’s picture

Status: Active » Needs review
StatusFileSize
new667 bytes
devuo’s picture

Status: Needs review » Postponed (maintainer needs more info)

Can you tell me your Breadcrumb configuration?

techninja’s picture

Assigned: rogical » Unassigned
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new551 bytes

I've also got this problem (I run in e-strict to catch little things like this, they're not killer, but good practice). Really, all PHP wants to say is that you just can't pass the output of end() through drupal_alter, as it's by reference, you'd never be able to change the input because it's not a variable.

Even if you'd never be using it (and I admit it's silly and yet another line of code), passing an actual variable along is the only correct method. See attached patch.

perignon’s picture

Status: Needs review » Reviewed & tested by the community

I applied the patch in #3 and it works. Fixes the strict warnings.

budalokko’s picture

I applied the patch in #3 too and fixed strict warning and module still works as expected.

rupl’s picture

Same issue: no malfunctions in the code, but ran into this warning with strict warnings turned on.

Giving patch in #3 RTBC++

devuo’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Thanks for your contribution, this problem has been fixed in the 7.x-1.x-dev branch. A 7.x-1.x version will be released soon with the fix.