V varst Member Nov 25, 2024 #1 When selecting the calculation of the average value in the list settings and when there are no records in the list, the error “Division by zero” is displayed. Has anyone encountered this? And how can it be solved?
When selecting the calculation of the average value in the list settings and when there are no records in the list, the error “Division by zero” is displayed. Has anyone encountered this? And how can it be solved?
troester Administrator Staff member Nov 25, 2024 #2 I can't replicate. Which Fabrik version? Enable J! system debug to get the error stack.
troester Administrator Staff member Nov 25, 2024 #6 Ok, it's not 'split' but if 'grouped by'. In components\com_fabrik\models\element.php change line 5321 to $uberObject->value = count($results2) == 0 ? 0 : $uberTotal / count($results2);
Ok, it's not 'split' but if 'grouped by'. In components\com_fabrik\models\element.php change line 5321 to $uberObject->value = count($results2) == 0 ? 0 : $uberTotal / count($results2);