Hi,
After upgrading to version 2.17 some of our problems are no longer rendering properly. The error message isn't clear either (to me at least).
We are using includeRandomProblem to give different students different problems and some of the problems are working while some are not. I've tried comparing them but can't find why there is an issue. Here is the error message with code for the problem included in the error:
Problem1 1. ERROR caught by Translator while processing problem file:Library/StockholmUni/DifferentialCalculusOneVar/Derivate/001.pg **************** ERRORS from evaluating PG file:
ERROR in included file: Library/StockholmUni/DifferentialCalculusOneVar/Derivate/DerivateEasy/enkelt5.pg 'require' trapped by operation mask at /usr/lib/x86_64-linux-gnu/perl/5.26/Encode.pm line 5 Died within Encode::Alias::find_alias called at line 114 of /usr/lib/x86_64-linux-gnu/perl/5.26/Encode.pm from within Encode::getEncoding called at line 132 of /usr/lib/x86_64-linux-gnu/perl/5.26/Encode.pm from within Encode::find_encoding called at line 166 of /usr/lib/x86_64-linux-gnu/perl/5.26/Encode.pm from within Encode::encode called at line 82 of [WW]/lib/Apache/WeBWorK.pm from within (eval) called at line 127 of [PG]/lib/WeBWorK/PG/IO.pm from within WeBWorK::PG::IO::includePGtext called at line 33 of [TMPL]/macros/unionInclude.pl from within main::includePGfile called at line 59 of [TMPL]/macros/unionInclude.pl from within main::includeRandomProblem called at line 7 of (eval 1228) Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl/5.26/Encode/Alias.pm line 22 ################################################################################ # WeBWorK Online Homework Delivery System # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ # $CVSHeader: webwork2/conf/snippets/blankProblem.pg,v 1.2 2005/02/06 15:20:51 gage Exp $ # # This program is free software; you can redistribute it and/or modify it under # the terms of either: (a) the GNU General Public License as published by the # Free Software Foundation; either version 2, or (at your option) any later # version, or (b) the "Artistic License" which comes with this package. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the # Artistic License for more details. ################################################################################ DOCUMENT(); # Load whatever macros you need for the problem loadMacros("PGstandard.pl", "MathObjects.pl", ); ## Do NOT show partial correct answers $showPartialCorrectAnswers = 0; TEXT(beginproblem()); $A = random(1,9,1); BEGIN_TEXT Bestäm derivatan till funktionen \\(f(x) = 1/(x+${A})^2 \\) $PAR$PAR \\( f'(x) = \\) \\{ans_rule(20) \\} $PAR END_TEXT $ans = Compute("-2/(x+${A})**3"); ANS($ans->cmp); ENDDOCUMENT(); at [PG]/lib/WeBWorK/PG/IO.pm line 129
****************
------Input Read 1 DOCUMENT(); 2 3 # Load whatever macros you need for the problem 4 loadMacros("unionInclude.pl", 5 ); 6 7 includeRandomProblem( 8 "DerivateEasy/enkelt1.pg", 9 "DerivateEasy/enkelt3.pg", 10 "DerivateEasy/enkelt4.pg", 11 "DerivateEasy/enkelt5.pg", 12 ); 13 14 ENDDOCUMENT();