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 keep getting an error ("trying to get property of non-object in std:class" or something) when using aggregation in the views UI.
But that's not even really my issue, seeing as views already has aggregation functionality for fields is this column in the graph settings even really necessary?
Comments
Comment #1
asherry CreditAttribution: asherry commentedThe aggregation setting on views changes the query group on all fields, even if you only want the aggregation settings to group on one. I put in the aggregation so that you could get a visualization working without having to enable views aggregation, to make it simpler.
Could you post a little more info about your view configuration? I could have a look.
Comment #2
strainyy CreditAttribution: strainyy commentedThanks for the response Asherry.
My views configuration is really basic. A few fields, AJAX enabled, a filter in a block. It works fine until I set any aggregation option in the settings of the D3 Visualisation format.
Comment #3
asherry CreditAttribution: asherry commentedComment #4
asherry CreditAttribution: asherry commentedSince the aggregation functionality has changed quite a bit I'm going to mark this as outdated. If this exact error is still happening then feel free to re-open, otherwise any new bugs deserve separate issues.
And the question about if the aggregation is needed at all is still a valid one, but since the views aggregation changes the field config and the query pretty heavily, I'm still going to say that it's sometimes much more lightweight to have the views display handler do the aggregation.