Division by Zero while using getWeightedRatio() method

Created on 9 March 2023, almost 2 years ago

Getting Notice Error for Division by Zero while using getWeightedRatio() method

Division by zeroin Drupal\quiz\Entity\QuizResultAnswer->getWeightedRatio() (line 299 of /opt/drupal/web/modules/contrib/quiz/src/Entity/QuizResultAnswerEntityTrait.php) #0 /opt/drupal/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real(2, 'Division by zer...', '/opt/drupal/web...', 299)Feb 10 15:09:39 ip-172-31-88-219 drupal: #1 /opt/drupal/web/modules/contrib/quiz/src/Entity/QuizResultAnswerEntityTrait.php(299): _drupal_error_handler(2, 'Division by zer...', '/opt/drupal/web...', 299, Array)

Steps to reproduce

will include a condition for avoiding the above problem

🐛 Bug report
Status

Active

Version

6.0

Component

Code - Other

Created by

🇺🇸United States webapp's

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024