Hi @sandra ,
I have a crash when I consult the Markbook from a student.
I’m using PHP 8.2. It’s probably a casting issue.
[Thu Mar 21 00:44:13.482472 2024] [php:notice] [pid 242407] [client 146.112.47.234:42926]
Uncaught Exception: TypeError - round(): Argument #1 ($num) must be of type int|float, string given in
/var/www/gibbon.local/modules/Markbook/moduleFunctions.php on line 267,
referer: http://…/index.php?q=%2Fmodules%2FStudents%2Fstudent_view_details.php&gibbonPersonID=0000000005&search=suzuki&sort=surname%2CpreferredName&allStudents=
moduleFunctions.php
// Calculate & get the cumulative average
$markbook->cacheWeightings($gibbonPersonID);
$cumulativeMark = round($markbook->getCumulativeAverage($gibbonPersonID, $gibbonSchoolYearTermID));
THANKS!
Sylvain
Gibbon : v26.0.00 ca-fr, PHP v8.2.10, MySQL v8.0.36, Ubuntu 23.10.1