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

CommentFileSizeAuthor
screenshot.jpg54.81 KBdhovorka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dhovorka’s picture

i 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

manuelBS’s picture

Status: Active » Fixed

Please 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

if (!empty($total)) {
    $total->{$alias} = $value;
  }

Here is the commit: http://cgit.drupalcode.org/views_calc_distinct/commit/?id=3638c57

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.