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'm getting the error
recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/html/sled/modules/lineage/views_plugin_style_lineage_nested.inc on line 267.
This happens when set my view style to Lineage nested list.
Comment | File | Size | Author |
---|---|---|---|
#3 | views_plugin_style_lineage_nested.inc_.patch | 437 bytes | kenorb |
taxonomy_term_view.txt | 18.47 KB | stinky |
Comments
Comment #1
stinky CreditAttribution: stinky commentedI changed line 267 from
$output .= $row;
to$output .= $row->$row;
The error message went away, but I'm not getting the data I want. I'm getting the taxonomy terms, but not the linked nodes. E.g.,
(term) Government & Law
(subterm)Alaska Government & Law
(sub-subterm)Alaska Current Legislation - Bill action/status, committee schedules
I want to get
(term) Government & Law
(subterm)Alaska Government & Law
*link
*link
(sub-subterm)Alaska Current Legislation - Bill action/status, committee schedules
*link
*link
*link
*link
Comment #2
kenorb CreditAttribution: kenorb commentedDuplicate here:
#795958: Object of class stdClass could not be converted to string in views_plugin_style_lineage_nested.inc on line 267
Bactrace available here:
http://drupal.org/node/795958#comment-2954064
Comment #3
kenorb CreditAttribution: kenorb commentedPatch attached.
Comment #4
xjmCommitted. Not sure exactly why it's getting an object instead of an array on the view edit pages but it has something to do with the view preview function.
http://drupal.org/cvs?commit=397444
See also: #864162: Views preview not working properly with nested plugin