WeBWorK Problems

error at bottom of problem

error at bottom of problem

by Sheldon Newhouse -
Number of replies: 5
Hello all,
I have a simple ODE problem as follows


##################################################
DOCUMENT(); # This should be the first executable line in the problem.

loadMacros(
"PG.pl",
"PGbasicmacros.pl",
"PGchoicemacros.pl",
"PGanswermacros.pl",
"PGgraphmacros.pl",
"PGmatrixmacros.pl",
"PGnumericalmacros.pl",
"PGauxiliaryFunctions.pl",
"PGmorematrixmacros.pl"
);

TEXT(beginproblem());
$showPartialCorrectAnswers = 1;

$a = random(2,9,1)*random(-1,1,2);
$b = - $a;
$y1 = non_zero_random(-9,9,1);

BEGIN_TEXT



Find the solution of the equation

\[ x y' + y = $b x y^2, \]
$BR
which satisfies \(y(1)=$y1.\)
$BR
$BR
\( y(x) = \) \{ ans_rule(50)\}.

END_TEXT

ANS(fun_cmp("1/($a*x*ln(x)+x/$y1)"));

ENDDOCUMENT();
######################################33

The problem works all right, but on the WW web page the following error message occurs:

#################################################

Checking additional error messages

pg debug
---- main /opt/webwork/pg/macros/PG.pl 145 ------
No increment done. Using PG to inc_ans_rule_count =
WeBWorK::PG::Translator
/opt/webwork/pg/lib/WeBWorK/PG/Translator.pm
1621
(eval)
0
0
package main; ans_rule(50);

256
UUUUUUUUUUUU

#####################################################

What does this mean, and how do I get rid of it?

TIA,
-sen

In reply to Sheldon Newhouse

Re: error at bottom of problem

by Danny Glin -
What version of WeBWorK are you running?  Does your version of PG match your version of WeBWorK?

Also, does this occur on all problems, or just this one?

Based on a quick look around, my best guess is that you are running an older version of PG.  I couldn't find anywhere in the code that calls the function which produces this error message.

Danny
In reply to Danny Glin

Re: error at bottom of problem

by Sheldon Newhouse -
Thanks for your reply.
I get this error message on all problems in this set (most of which were obtained in the old problem data base). On some newer sets that I made up, I don't get the error message. I'll check with the admin about the versions of WW and PG.
-sen
In reply to Danny Glin

Re: error at bottom of problem

by Arnold Pizer -
Hi,

The error message almost certainly is produced by Problem.pm (the same error message is also produced by some of the localization files). 

Not sure what is triggering it.  Since you have some sets that trigger it and some that don't, you might be able to isolate it a bit more which will give you and us more information on what is going on.

Arnie
In reply to Arnold Pizer

Re: error at bottom of problem

by Sheldon Newhouse -
It now seems the problem is fixed.
When I first started using WW, I was concerned about the server crashing, so I had copied the macros directory into my own local macros file under the templates of this course. I renamed the directory and now WW calls the correct macros in the WW installation directory (with a newer version of WW).

The error messages no longer appear.

Thanks to all who replied.

-sen