Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#6 | webform_report_pass_variables_by_reference-issue_1935078-6.patch | 688 bytes | lockjessie89@gmail.com |
Comments
Comment #1
jimbullington CreditAttribution: jimbullington commentedComment #2
yueming CreditAttribution: yueming commentedChange
$output .= drupal_render(drupal_get_form('webform_report_search_form', $node));
to
will fix the error.
Comment #4
souravmondal CreditAttribution: souravmondal commentedComment #2 is correct. It's resolve to me
Comment #5
lockjessie89@gmail.com CreditAttribution: lockjessie89@gmail.com commentedComment #6
lockjessie89@gmail.com CreditAttribution: lockjessie89@gmail.com commentedReproduced the same error and resolved with comment #2.
Submitting a patch for it.
Comment #7
easanchez10 CreditAttribution: easanchez10 commentedThank you yueming
#2 solved it!
Comment #8
pgsengstock CreditAttribution: pgsengstock commentedpatch in #6 (using code from #2) works for me, too.