I am having trouble getting the PDF Hardcopy feature to work for any of my homework sets in one of my courses.
It appears to only be a problem when I have inserted the following into my PGcourse.pl in my macros folder.
loadMacros("problemRandomize.pl"); # Allow for the user to try another version of the problem once they get it correct. ProblemRandomize(when=>"Correct",onlyAfterDue=>0);Is there something that I can do to modify this code so that it does not get run on a hardcopy call yet still allows students this option of trying new versions of each problem?
Here's the error:
WeBWorK error
An error occured while processing your request. For help, please send mail to this site's webmaster (webwork@missouri.edu), including all of the following information as well as what what you were doing when the error occured.
Thu Sep 18 11:25:51 2014
Warning messages
Error messages
Undefined subroutine &main::avg_problem_grader called at (eval 50965) line 358.
Call stack
The information below can help locate the source of the problem.
in WeBWorK::PG::Local::new called at line 49 of /opt/webwork/webwork2/lib/WeBWorK/PG.pm
in WeBWorK::PG::new called at line 1073 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
in WeBWorK::ContentGenerator::Hardcopy::write_problem_tex called at line 954 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
in WeBWorK::ContentGenerator::Hardcopy::write_set_tex called at line 863 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
in WeBWorK::ContentGenerator::Hardcopy::write_multiset_tex called at line 837 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
in WeBWorK::ContentGenerator::Hardcopy::write_multiuser_tex called at line 610 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
in WeBWorK::ContentGenerator::Hardcopy::generate_hardcopy called at line 254 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
in WeBWorK::ContentGenerator::Hardcopy::pre_header_initialize called at line 183 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::go called at line 370 of /opt/webwork/webwork2/lib/WeBWorK.pm
Request information
Method | POST | ||||||||||||||||||||
URI | /webwork2/MTH_104_Intermediate_Algebra/hardcopy/HW1-IntroToWeBWorK/ | ||||||||||||||||||||
HTTP Headers |
|