我不明白的MySQL错误,grademax错误

问题描述 投票:-1回答:1

最近发生在我的情绪波动中的错误,我无法解决,不知道该怎么办。我知道我需要从MySQL中进行一些更改,但是我不知道该怎么做。该错误仅影响一门Moodle课程,导致学生既看不到问题也不解决。问题是VPL。

Debug info: Out of range value for column 'grademax' at row 1
UPDATE mdl_grade_items SET 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 = ? WHERE id=?
[array (
0 => '6',
1 => NULL,
2 => NULL,
3 => 'course',
4 => NULL,
5 => '6',
6 => NULL,
7 => NULL,
8 => NULL,
9 => NULL,
10 => 1,
11 => 100103.0,
12 => 0.0,
13 => NULL,
14 => NULL,
15 => '0.00000',
16 => 1.0,
17 => 0.0,
18 => 0.0,
19 => 0.0,
20 => '1',
21 => '0',
22 => NULL,
23 => '0',
24 => '0',
25 => 1,
26 => '0',
27 => '1517923151',
28 => 1572436932,
29 => '0',
30 => '91',
)]
Error code: dmlwriteexception



Stack trace:
line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1528 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1560 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
line 254 of /lib/grade/grade_object.php: call to mysqli_native_moodle_database->update_record()
line 307 of /lib/grade/grade_item.php: call to grade_object->update()
line 1559 of /lib/grade/grade_category.php: call to grade_item->update()
line 448 of /lib/grade/grade_category.php: call to grade_category->auto_update_max()
line 1162 of /lib/gradelib.php: call to grade_category->pre_regrade_final_grades()
line 440 of /lib/gradelib.php: call to grade_regrade_final_grades()
line 1314 of /mod/vpl/vpl.class.php: call to grade_get_grades()
line 1807 of /mod/vpl/vpl.class.php: call to mod_vpl->get_grade_info()
line 80 of /mod/vpl/view.php: call to mod_vpl->print_submission_restriction()
php mysql phpmyadmin moodle moodle-api
1个回答
0
投票

尝试从您的值中删除点

UPDATE mdl_grade_items 
  SET 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 = ? 
  WHERE id=?
    [array (
    0 => '6',
    1 => NULL,
    2 => NULL,
    3 => 'course',
    4 => NULL,
    5 => '6',
    6 => NULL,
    7 => NULL,
    8 => NULL,
    9 => NULL,
    10 => 1,
    11 => 100103,
    12 => 0.0,
    13 => NULL,
    14 => NULL,
    15 => '0',
    16 => 1.0,
    17 => 0.0,
    18 => 0.0,
    19 => 0.0,
    20 => '1',
    21 => '0',
    22 => NULL,
    23 => '0',
    24 => '0',
    25 => 1,
    26 => '0',
    27 => '1517923151',
    28 => 1572436932,
    29 => '0',
    30 => '91',
    )]
© www.soinside.com 2019 - 2024. All rights reserved.