Couldnt find anything so I'm posting this...

This happens when I check the "Display Search Form" in the Options section.

Strict warning: Only variables should be passed by reference in _webform_report_get_body_content() (line 300 of /var/www/intranet/sites/all/modules/webform_report/webform_report.inc).

The search still works correctly.

If I un-check it the option to display the search, the error goes away.

Is any other info needed?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jimbullington’s picture

Status: Active » Closed (cannot reproduce)
yueming’s picture

Status: Closed (cannot reproduce) » Fixed

Change
$output .= drupal_render(drupal_get_form('webform_report_search_form', $node));

to

        $elements = drupal_get_form('webform_report_search_form', $node);
        $output .= drupal_render($elements);

will fix the error.

Status: Fixed » Closed (fixed)

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

souravmondal’s picture

Comment #2 is correct. It's resolve to me

lockjessie89@gmail.com’s picture

Title: Error:Only variables should be passed by reference in _webform_report_get_body_content » Error: Only variables should be passed by reference in _webform_report_get_body_content
Issue summary: View changes
Status: Closed (fixed) » Needs review
lockjessie89@gmail.com’s picture

Reproduced the same error and resolved with comment #2.
Submitting a patch for it.

easanchez10’s picture

Thank you yueming
#2 solved it!

pgsengstock’s picture

patch in #6 (using code from #2) works for me, too.