• Fabrik4.5.3 for J!5.3.0 and J!4.2+is out

    You must update from Fabrik4.5.1 if you are running Joomla!5.3.0

    See Announcements

Fixed List average value - Division by zero

varst

Member
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?
 
Joomla 5.2.1, Fabrik 4.4.1

divisionZero.png

 
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);
 

Members online

No members online now.
Back
Top