Olá,
Estou com um problema serio em um curso do meu moodle, não consigo inserir qualquer tipo de atividade nessa disciplina, outros recursos como arquivos e rótulos são inseridos normalmente, segue abaixo o debug da pagina
Erro ao gravar na base de dados
Debug info: Data truncated for column 'V_CD_PESSOA' at row 1
UPDATE mdl_grade_grades g
JOIN mdl_grade_items gi ON (g.itemid = gi.id)
SET g.aggregationstatus = 'unknown',
g.aggregationweight = 0
WHERE g.userid = ?
AND gi.categoryid = ?
[array (
0 => '2205',
1 => '1435',
)]
Error code: dmlwriteexception
UPDATE mdl_grade_grades g
JOIN mdl_grade_items gi ON (g.itemid = gi.id)
SET g.aggregationstatus = 'unknown',
g.aggregationweight = 0
WHERE g.userid = ?
AND gi.categoryid = ?
[array (
0 => '2205',
1 => '1435',
)]
Error code: dmlwriteexception
Stack trace:
- line 446 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 974 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 819 of /lib/grade/grade_category.php: call to mysqli_native_moodle_database->execute()
- line 771 of /lib/grade/grade_category.php: call to grade_category->set_usedinaggregation()
- line 519 of /lib/grade/grade_category.php: call to grade_category->aggregate_grades()
- line 699 of /lib/grade/grade_item.php: call to grade_category->generate_grades()
- line 1102 of /lib/gradelib.php: call to grade_item->regrade_final_grades()
- line 321 of /course/modlib.php: call to grade_regrade_final_grades()
- line 166 of /course/modlib.php: call to edit_module_post_actions()
- line 274 of /course/modedit.php: call to add_moduleinfo()