[ww-bugs] Bug 3718: New: parserRadioButtons.pl throws a warning, does not have correct answer as correct
bugzilla-daemon at webwork.maa.org
bugzilla-daemon at webwork.maa.org
Mon Aug 29 14:33:29 EDT 2016
http://bugs.webwork.maa.org/show_bug.cgi?id=3718
Summary: parserRadioButtons.pl throws a warning, does not have
correct answer as correct
Product: PG
Version: 2.12
Platform: PC
OS/Version: Windows
Status: NEW
Severity: critical
Priority: P5
Component: macros
AssignedTo: dpvc at union.edu
ReportedBy: paultpearson at gmail.com
CC: gage at math.rochester.edu
Web browser Chrome
version:
Browser version 52.0.2743.116 m
number:
Created an attachment (id=254)
--> (http://bugs.webwork.maa.org/attachment.cgi?id=254)
Screenshot of the warning message
Hi Davide,
parserRadioButtons.pl is not working for me on our new (as of late June / early
July 2016) WebWork 2.12 installation. I received this error message
Warning messages
Use of uninitialized value $value in string eq at line 314 of
[TMPL]/macros/parserRadioButtons.pl
Use of uninitialized value $value in string eq at line 314 of
[TMPL]/macros/parserRadioButtons.pl
when trying to run the very basic pg file below (both variants of this file
gave the same error message). I also downloaded the github master version of
parserRadioButtons.pl and saved it to the course templates/macros directory and
still received the same error message.
In the file below, the correct answer is 75. When "Check Answers" is pressed
with the "Show correct answers" button, WebWork shows the correct answer as 65
(which is incorrect). When the correct answer (75) is submitted, it is marked
incorrect. See image attachment for details.
Since there may be many people affected by this bug, I marked it as critical
(and urgent since the start of the semester is tomorrow for us).
Thanks!
Paul Pearson
#############################################
DOCUMENT();
loadMacros(
"PGstandard.pl",
"PGML.pl",
"parserRadioButtons.pl",
"PGcourse.pl"
);
$showPartialCorrectAnswers = 1;
TEXT(beginproblem());
$center1 = RadioButtons(['65','75','85','95'],'75');
BEGIN_PGML
a. Center: Where is the distribution of predicted high temperatures in SLO
county centered? What is a typical value? (What is the average?)
[@ $center1->buttons @]*
END_PGML
ANS( $center1->cmp );
ENDDOCUMENT();
##########################################
DOCUMENT();
loadMacros(
"PGstandard.pl",
"PGML.pl",
"parserRadioButtons.pl",
"PGcourse.pl"
);
$showPartialCorrectAnswers = 1;
TEXT(beginproblem());
$center1 = RadioButtons(['65','75','85','95'],'75');
BEGIN_PGML
a. Center: Where is the distribution of predicted high temperatures in SLO
county centered? What is a typical value? (What is the average?)
[_]{$center1}
END_PGML
ENDDOCUMENT();
--
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the webwork-bugs
mailing list