WeBWorK Main Forum

preventing LTI grade pass back warnings

preventing LTI grade pass back warnings

by Andras Balogh -
Number of replies: 8

We have about 2,000 students using lti_grade_passback to Blackboard and another 2,000 not using LTI or grade pass back with v. 2.19 WeBWorK

Even though we have set $debug_lti_grade_passback = 0; I still see a lot of warnings in the webwork2.log like

[warn] submitting all grades for user: (student-ID)
[warn] lis_source_did is not available for user: (student-ID)

These are for students whose accounts are local, not from LTI and their grades are not linked to Blackboard.

Can I prevent these warnings for the courses not needing LTI by placing in the course.conf files and empty string for the LTI grades, like $LTI{v1p1}{grader} = ' ';


In reply to Andras Balogh

Re: preventing LTI grade pass back warnings

by Glenn Rice -

It will probably cause problems if you do that with the $LTI{v1p1}{grader} variable because that will leave grade pass back active, but say that the grader module is the empty string.  That should cause an exception when grade pass back runs.  That is why there is a comment in the file not to change that.  In fact in the next release of WeBWorK that variable won't exist anymore.  I found a better way of doing that that doesn't rely on something in the configuration files that a system administrator could fudge with.

But if you set $LTIGradeMode = ''; in the course.conf file it will do what you want.  That will disable grade pass back for the course.

In reply to Glenn Rice

Re: preventing LTI grade pass back warnings

by Andras Balogh -

Thanks! That makes sense.

I should have guessed that since I am already placing $LTIGradeMode='homework'; into some courses with global setting $LTIGradeMode='course';

In reply to Glenn Rice

Re: preventing LTI grade pass back warnings

by Andras Balogh -
It looks like a space is needed in between the quotes. $LTIGradeMode = ' ';
In reply to Andras Balogh

Re: preventing LTI grade pass back warnings

by Glenn Rice -

A space is not needed, although it will also work to disable grade passback.  In fact anything that is not 'homework' or 'course' will disable LTI grade passback.

In reply to Glenn Rice

Re: preventing LTI grade pass back warnings

by Andras Balogh -

The reason I thought the space is needed because I still saw warning messages:
[2025-05-04 14:29:15.61249] [10525] [warn] submitting all grades for user: [userid]
[2025-05-04 14:29:15.61264] [10525] [warn] lis_source_did is not available for user: [userid]

I thought adding space fixed this with $LTIGradeMode=" "; but it turns out that I still see the warning messages today.


In reply to Andras Balogh

Re: preventing LTI grade pass back warnings

by Glenn Rice -

Are you seeing those warnings when a mass update occurs? Those aren't actually warnings in that case.  Those messages are always logged when a mass update occurs for users that don't have an lis_source_did.

In reply to Glenn Rice

Re: preventing LTI grade pass back warnings

by Andras Balogh -

Yes, it happens during mass updates. 

My hope was that since these are local accounts with no LMS to updated the grade to, the $LTIGradeMode=" "; will disable mass updates for these courses and will not log any related messages.

In reply to Andras Balogh

Re: preventing LTI grade pass back warnings

by Glenn Rice -
Your hope is the actuality. If you have $LTIGradeMode = "";, then no mass update will occur, and you won't see those messages. If you are still seeing those messages for users in a particular course, then that course must have $LTIGradeMode = 'homework' or $LTIGradeMode = 'course'. Check the courses course.conf and simple.conf files.

Looking closely at the code I see that if you have $LTIGradeMode = " "; then mass grade passback will still occur, and you might still get those warnings.  You definitely do NOT want the space.