backdrop-contrib / beautytips_node

Display any node page inside a BeautyTip.
GNU General Public License v2.0
0 stars 0 forks source link

Notice: Only variables should be passed by reference #5

Open olafgrabienski opened 6 years ago

olafgrabienski commented 6 years ago

After hovering on a (partially working) Beautytips Node link and/or after clicking somewhere else to close the tooltip again, I get the following notice in DBlog:

Only variables should be passed by reference in beautytips_node_beautytips_node_output() (line 75 of /PATH-TO/modules/beautytips_node/beautytips_node.module).

Interestingly, I see the same error on a Drupal test page using Beautytips Node via simplytest.me, PHP versions are in both cases 7.0.2x.

olafgrabienski commented 6 years ago

I was able to reproduce the issue on a fresh Backdrop site using the official Beautytips API release and the current code of Beautytips Node. My PHP version is 7.1.12.

This is the line in question:

print backdrop_render(node_view($node, 'beautytips_node'));

Hopefully helpful pages: