WeBWorK Problems

WeBWorK Questionnaire

WeBWorK Questionnaire

by Curtis Card -
Number of replies: 5
I'm trying to get the WeBWorK questionniare to work and I get the following warning and don't receive any email notification. I have changed the allowedRecipients to my address. I'm not sure what actually triggers the sending of the email notification.

Thanks -- Curtis

WeBWorK Warnings

WeBWorK has encountered warnings while processing your request. If this occured when viewing a problem, it was likely caused by an error or ambiguity in that problem. Otherwise, it may indicate a problem with the WeBWorK system itself. If you are a student, report these warnings to your professor to have them corrected. If you are a professor, please consult the warning output below for more information.

Warning messages

  • can't address message to illegal recipient 'apizer@math.rochester.edu' at /opt/webwork/webwork2/lib/WeBWorK/Utils/DelayedMailer.pm line 78.

Request information

Time Sat Nov 17 18:13:03 2007
Method POST
URI /webwork2/Math123/WeBWorKEvaluation/1/

In reply to Curtis Card

Re: WeBWorK Questionnaire

by Michael Gage -
The trigger is in the code for the problem Questionnaire itself. Near the end of the file is a segment like this:

 if ($number_of_answers > 0) {
# mail_answers_to2('gage@math.rochester.edu','MTH165_fa07 WeBWorK Questionnaire');
# mail_answers_to2('apizer@math.rochester.edu','MTH 140A fall 2004 WeBWorK Questionnaire');
# mail_answers_to2('jonpak@math.rochester.edu','fall 2007 WeBWorK Questionnaire');
 }


You will want place your own address there and comment out any unwanted addresses. The second argument is the subject title of the email that will be sent to you. You can use it to filter the email messages into a separate mailbox. You can have the email sent to more than one address.






In reply to Michael Gage

Re: WeBWorK Questionnaire

by Raghu Gompa -
I have a different problem with WeBWorK Questionnaire.

You can go to the link

http://webwork2.math.rochester.edu/webwork2/jsu-112/StudentInfo/1/?effectiveUser=practice3&displayMode=images&user=practice3&key=d2sBJmcWM8XeRl3eMTOxpvY9OTcWJNst

login as a guest to see the problem.

I am getting the following message:

WeBWorK Warnings

WeBWorK has encountered warnings while processing your request. If this occured when viewing a problem, it was likely caused by an error or ambiguity in that problem. Otherwise, it may indicate a problem with the WeBWorK system itself. If you are a student, report these warnings to your professor to have them corrected. If you are a professor, please consult the warning output below for more information.

Warning messages

  • ERROR in old_safe_ev, PGbasicmacros.pl:
  • ## There is an error occuring inside evaluation brackets \{ ...code... \}
  • ## somewhere in an EV2 or EV3 or BEGIN_TEXT block.
  • ## Code evaluated:
  • ## ANS(anstext('Number and Name.')); ans_box( 10,80)
  • ##Undefined subroutine &main::anstext called at line 2 of (eval 16690).
  • ##
  • at (eval 946) line 1416
  • ERROR in old_safe_ev, PGbasicmacros.pl:
  • ## There is an error occuring inside evaluation brackets \{ ...code... \}
  • ## somewhere in an EV2 or EV3 or BEGIN_TEXT block.
  • ## Code evaluated:
  • ## ANS( anstext('A. Give me an indication about how comfortable you are with mathematics. 1=least, 5=most, .. ' ) ) ;
  • OL(
  • ans_radio_buttons(
  • 1 => '1',
  • 2 => '2',
  • 3 => '3',
  • 4 => '4',
  • 5 => '5',
  • ) );
  • ##Undefined subroutine &main::anstext called at line 2 of (eval 16692).
  • ##
  • at (eval 946) line 1416
  • ERROR in old_safe_ev, PGbasicmacros.pl:
  • ## There is an error occuring inside evaluation brackets \{ ...code... \}
  • ## somewhere in an EV2 or EV3 or BEGIN_TEXT block.
  • ## Code evaluated:
  • ## ANS( anstext('B. Do you plan to work in groups to study for this course? 1=yes, 2=no' ) ) ;
  • OL(
  • ans_radio_buttons(
  • 1 => 'Yes',
  • 2 => 'No',
  • ) );
  • ##Undefined subroutine &main::anstext called at line 2 of (eval 16694).
  • ##
  • at (eval 946) line 1416
  • ERROR in old_safe_ev, PGbasicmacros.pl:
  • ## There is an error occuring inside evaluation brackets \{ ...code... \}
  • ## somewhere in an EV2 or EV3 or BEGIN_TEXT block.
  • ## Code evaluated:
  • ## ANS(anstext('C. Please tell me about you.')); ans_box( 10,80)
  • ##Undefined subroutine &main::anstext called at line 2 of (eval 16696).
  • ##
  • at (eval 946) line 1416
  • ERROR in old_safe_ev, PGbasicmacros.pl:
  • ## There is an error occuring inside evaluation brackets \{ ...code... \}
  • ## somewhere in an EV2 or EV3 or BEGIN_TEXT block.
  • ## Code evaluated:
  • ## ANS(anstext('D. Please tell me about your expectations for this course.'));ans_box(10,80 )
  • ##Undefined subroutine &main::anstext called at line 2 of (eval 16698).
  • ##
  • at (eval 946) line 1416
  • ERROR in old_safe_ev, PGbasicmacros.pl:
  • ## There is an error occuring inside evaluation brackets \{ ...code... \}
  • ## somewhere in an EV2 or EV3 or BEGIN_TEXT block.
  • ## Code evaluated:
  • ## ANS(anstext('E. Please use this space for additional information that will help me with my teaching.')); ans_box( 10,80)
  • ##Undefined subroutine &main::anstext called at line 2 of (eval 16700).
  • ##
  • at (eval 946) line 1416
  • ERROR in old_safe_ev, PGbasicmacros.pl:
  • ## There is an error occuring inside evaluation brackets \{ ...code... \}
  • ## somewhere in an EV2 or EV3 or BEGIN_TEXT block.
  • ## Code evaluated:
  • ## ANS(anstext('F. What is the best way to reach you? (e-mail, phone numbers, etc.)')); ans_box( 10,80)
  • ##Undefined subroutine &main::anstext called at line 2 of (eval 16702).
  • ##
  • at (eval 946) line 1416

Please help. .. Raghu

In reply to Raghu Gompa

Re: WeBWorK Questionnaire

by Michael Gage -
The error messages indicate that the anwer evaluator

anstext

is not defined.

You can use the database for PGmacros to find out where it is defined:
https://webwork.maa.org/moodle/mod/data/view.php?id=194

(this data base can be edited, so anyone can help keep it up to date :-) )

In any case it is now defined in the file

PGtextevaluators.pl

I believe that adding this file to the loadMacros() call will solve your problem

The file PGanswerevaluators has been
broken into smaller pieces to improve performance, so some of the less
used macros are in new files.

Let us know how it works out.

-- Mike


In reply to Michael Gage

Re: WeBWorK Questionnaire

by Raghu Gompa -
Thank you very much, Dr. Gage.



                                    
In reply to Raghu Gompa

Re: WeBWorK Questionnaire

by Raghu Gompa -
I am once again experiencing a different problem. It shows:

  • Use of uninitialized value in substitution iterator at line 359 of [PG]/macros/PGtextevaluators.pl
and I am not receiving email of the answers in the questionnaire.

What do I do? .. Raghu