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.
I was getting a lot errors like:
Strict warning: Only variables should be passed by reference in ds_views_row_render_taxonomy_term_data() (line 356 of /home/johnny/www/rm-drupal/sites/all/modules/drupal.org/ds/views/views_plugin_ds_entity_view.inc).
So I used this simple patch and the errors are away now.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1295586-3-functions_passed_by_ref.patch | 3.97 KB | pfrenssen |
ds-ds_views_row_render_taxonomy_term_data-reference-error.patch | 650 bytes | Johnny vd Laar |
Comments
Comment #1
swentel CreditAttribution: swentel commentedCommitted and pushed, thanks!
Comment #3
pfrenssenThis problem also exists in other parts of Display Suite. I encountered this today when working with users:
I went through the code and fixed this notice for the entire codebase. I also updated the example in ds.api.php while I was at it.
Comment #4
swentel CreditAttribution: swentel commentedah, crap strict stuff :) Committed and pushed, thanks!