WeBWorK Main Forum

Homework set editor bug? (can't view problems in 2.4)

Homework set editor bug? (can't view problems in 2.4)

by Blake Thornton -
Number of replies: 2
I will try to submit this to bugzilla but perhaps it isn't a bug. When I add problems to a set and then click on homework sets editor and then click on the problems to edit the set I get a webwork error. This only seems to occur if the problems have not been assigned to me, if they set has been assigned to me then there is no error.

Here's the error message:

Error messages

Can't call method "assignment_type" on an undefined value at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm line 1748.

Call stack

The information below can help locate the source of the problem.

  • in WeBWorK::ContentGenerator::Instructor::ProblemSetDetail::body called at line 152 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm
  • in WeBWorK::Template::template called at line 486 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::content called at line 194 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::go called at line 353 of /opt/webwork/webwork2/lib/WeBWorK.pm



In reply to Blake Thornton

Re: Homework set editor bug? (can't view problems in 2.4)

by Gavin LaRose -
Hi Blake,

This is an annoying bug in version 2.4 where viewing problems fails when the set isn't assigned to the user. If you assign the set to yourself I think it resolves the problem. Or, check out version 2.4.1, where I think the bug is fixed.

Gavin
In reply to Gavin LaRose

Re: Homework set editor bug? (can't view problems in 2.4)

by Blake Thornton -
Thanks Gavin. We'll upgrade. It is an annoying bug, but as you point out, there are ways around it.

Blake