WeBWorK Problems

Some questions are not loading parserUtils.pl

Some questions are not loading parserUtils.pl

by Andras Balogh -
Number of replies: 3
In a new v. 2.19 I see (non fatal) warning messages in several questions that did not show up in v. 2.17
For example: 
FortLewis/Algebra/5-4-Equations-for-lines/MCH1-5-4-16a-Equations-for-lines.pg

  • Use of uninitialized value $BTT in concatenation (.) or string at line 31 of (eval 8217)
I see that $BTT and $ETT are defined in parserUtils.pl, but that file is not loaded. If I insert it in the loadMacros part then the warning messages go away.

I see that the macros were reorganized, but since  parserUtils.pl  was not in the v. 2.17 problem files either, I was wondering if other macro files were supposed to load it.

In reply to Andras Balogh

Re: Some questions are not loading parserUtils.pl

by Danny Glin -

I recall running into this as well.  IIRC the $BTT and $ETT variables weren't working in those problems in 2.17, but it was failing silently (though I could be remembering incorrectly).  In the long run the better solution will be to update those problems to MathObjects and deprecate the $BTT/$ETT construction.

In reply to Danny Glin

Re: Some questions are not loading parserUtils.pl

by Andras Balogh -

Yes, you are right. 

In 2.17 only the apache2 error.log shows the warnings. 

In 2.19 admin and professor can see it in the browser, and for students it still silent.

In reply to Andras Balogh

Re: Some questions are not loading parserUtils.pl

by Glenn Rice -

That is because of a change to how those warnings are handled in WeBWorK 2.18.  Prior to 2.18, those message were only in the apache2 error log as you saw, which is not a place that a problem author making a mistake in authoring a problem will ever see.  So in 2.18 that was changed, and those messages are now shown for instructors.  The point is to make problem authors aware of their mistakes so they start fixing them.