This error warning comes up with Leaflet Views when a node view mode (rather than a field) is used as the "description" content.

Strict warning: Only variables should be passed by reference in leaflet_views_plugin_style->render() (line 162 of .../modules/contrib/leaflet/leaflet_views/leaflet_views_plugin_style.inc).

It's a super-easy fix; patch to follow.

Comments

adamdicarlo’s picture

Status: Active » Needs review
StatusFileSize
new1.23 KB

The issue is that Drupal render takes a reference, because it changes the data structure passed. Here's a patch.

adamdicarlo’s picture

Title: Strict warning: Only variables should be passed by reference » Leaflet Strict warning: Only variables should be passed by reference

Retitle for d.o Dashboard clarity.

pvhee’s picture

Status: Needs review » Fixed

Thanks, it indeed seems common practice to split node_view and drupal_render. Committed!

Status: Fixed » Closed (fixed)

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