I have been helping a professor set up a summer course in WeBWorK (ver 2.14) with LTI authorization from Canvas. I have been enrolled as a student in his Canvas course. The LTI authorization works fine and I can access a problem set in Canvas. Everything was working fine until a few days ago. When grading a problem, I started getting this error message:
Can't use string ("{"errors":[{"message":"Duplicate"...) as a HASH ref while "strict refs" in use at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm line 193.
WeBWorK correctly grades the problem because I can see the score in the WeBWorK gradebook, but is unable to report the grade back to Canvas.
Sometimes if I graded the problem again, the error would not appear and the grade would show up in Canvas. But now I am getting the error message every time I try to grade a problem.
The $LTIGradeMode is set to "homework". If I set $LTIGradeOnSubmit = 0 I do not get the error. But if I reset $LTIGradeOnSubmit back to 1, the error starts appearing again.
I looked at line 193 in the SubmitGrade.pm file, but did not see anything helpful that I understood. I tried setting $debug_lti_parameters to 1, but that did not give any additional information about this error.
Any suggestions on what might be happening and how I might fix that?
Here is the entire message after clicking on the grade button:
Error messages
Can't use string
("{"errors":[{"message":"Duplicate"...) as a HASH ref while "strict
refs" in use at
/opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm line
193.
Call stack
The information below can help locate the source of the problem.
in WeBWorK::Authen::LTIAdvanced::SubmitGrade::local_escape_html called at line 339 of /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm
in WeBWorK::Authen::LTIAdvanced::SubmitGrade::submit_grade called at line 182 of /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm
in WeBWorK::Authen::LTIAdvanced::SubmitGrade::submit_set_grade called at line 286 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/ProblemUtil/ProblemUtil.pm
in WeBWorK::ContentGenerator::ProblemUtil::ProblemUtil::process_and_log_answer called at line 775 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm
in WeBWorK::ContentGenerator::Problem::pre_header_initialize called at line 213 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::go called at line 384 of /opt/webwork/webwork2/lib/WeBWorK.pm
Request information
Method | POST | ||||||||||||||||||||||||||
URI | /webwork2/Math115_SU20/01/1/ | ||||||||||||||||||||||||||
HTTP Headers |
|