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.
Warning: Attempt to assign property of non-object in views_calc_distinct_set_value() (line 148 of .../profiles/erpal/modules/contrib/views_calc_distinct/views_calc_distinct.module).
Seems like after fresh install some other people experience this also. i saw a threat https://www.drupal.org/node/2322821 but i tried also to update the moduls but it did not help.
I have this error actual in multiply screens.
When you click the Activities in the left screen and there is no missed activity than the warning comes. One click on all and the warning goes away
Comment | File | Size | Author |
---|---|---|---|
screenshot.jpg | 54.81 KB | dhovorka |
Comments
Comment #1
dhovorka CreditAttribution: dhovorka commentedi made some further investigation on it and found following ...
when the warning comes the values are set as following:
$total->{$alias} = $value; // makes the warning message
DEBUG:
$alias sum__field_data_field_volume_node_entity_type
$value 0
now i don't understand it total, it could also be that $value might be NULL
Comment #2
manuelBS CreditAttribution: manuelBS commentedPlease download the latest version of the views calc distinct module (https://www.drupal.org/project/views_calc_distinct) where I replace the line of code you mentioned by
Here is the commit: http://cgit.drupalcode.org/views_calc_distinct/commit/?id=3638c57