Коллеги,
Появилась проблема с записью на курс. Пользователь при клике на Enroll получает сообщение
More information about this error
При клике Продолжить выбрасывает на главную, но при повторном входе в курс система Записи уже не требует, уже считает его записанным.
Дебагинг пишет:
Debug info: Column 'grademax' cannot be null
INSERT INTO mdl_grade_items (courseid,categoryid,itemname,itemtype,itemmodule,iteminstance,itemnumber,iteminfo,idnumber,calculation,gradetype,grademax,grademin,scaleid,outcomeid,gradepass,multfactor,plusfactor,aggregationcoef,aggregationcoef2,sortorder,display,decimals,locked,locktime,needsupdate,weightoverride,timecreated,timemodified,hidden) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => '297',
1 => '293',
2 => 'Вебинар по курсу Обзор JAVA технологий разработки ПО Part1',
3 => 'mod',
4 => 'eduplayer',
5 => '6',
6 => 0,
7 => NULL,
8 => NULL,
9 => NULL,
10 => 1,
11 => NULL,
12 => 0,
13 => NULL,
14 => NULL,
15 => 0,
16 => 1,
17 => 0,
18 => 0,
19 => 0,
20 => 4,
21 => 0,
22 => NULL,
23 => 0,
24 => 0,
25 => 1,
26 => 0,
27 => 1417687240,
28 => 1417687240,
29 => 0,
)]
Error code: dmlwriteexception
Stack trace:
line 446 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1164 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1210 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 343 of /lib/grade/grade_object.php: call to mysqli_native_moodle_database->insert_record()
line 430 of /lib/grade/grade_item.php: call to grade_object->insert()
line 128 of /lib/gradelib.php: call to grade_item->insert()
line 350 of /mod/eduplayer/lib.php: call to grade_update()
line 1216 of /lib/gradelib.php: call to eduplayer_grade_item_update()
line 1187 of /lib/gradelib.php: call to grade_update_mod_grades()
line 1003 of /lib/gradelib.php: call to grade_grab_course_grades()
line 1347 of /lib/enrollib.php: call to grade_recover_history_grades()
line 200 of /enrol/self/lib.php: call to enrol_plugin->enrol_user()
line 243 of /enrol/self/lib.php: call to enrol_self_plugin->enrol_self()
line 65 of /enrol/index.php: call to enrol_self_plugin->enrol_page_hook()
Но Max grade проставлен 100.
Кто-нибудь сталкивался с такой проблемой? Если да, как избавиться от этого?