Forum archive 2000-2006

Mark Hamrick - Homework Sets Editor- Error message

Mark Hamrick - Homework Sets Editor- Error message

by Arnold Pizer -
Number of replies: 0
inactiveTopicHomework Sets Editor- Error message topic started 8/9/2006; 5:27:37 PM
last post 11/10/2006; 1:17:54 PM
userMark Hamrick - Homework Sets Editor- Error message  blueArrow
8/9/2006; 5:27:37 PM (reads: 242, responses: 4)
Hello,

I am getting the error message below on the homework sets editor page.

Can't use an undefined value as a HASH reference at /opt/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetList.pm line 1847.

Call stack

The information below can help locate the source of the problem.

* in WeBWorK::ContentGenerator::Instructor::ProblemSetList::recordEditHTML called at line 1942 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetList.pm * in WeBWorK::ContentGenerator::Instructor::ProblemSetList::printTableHTML called at line 488 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetList.pm * in WeBWorK::ContentGenerator::Instructor::ProblemSetList::body called at line 152 of /opt/webwork2/lib/WeBWorK/Template.pm * in WeBWorK::Template::template called at line 479 of /opt/webwork2/lib/WeBWorK/ContentGenerator.pm * in WeBWorK::ContentGenerator::content called at line 187 of /opt/webwork2/lib/WeBWorK/ContentGenerator.pm * in WeBWorK::ContentGenerator::go called at line 335 of /opt/webwork2/lib/WeBWorK.pm

Request information Select Edit Set Data Edit Problems Edit Assigned Users Visible Open Date Due Date Answer Date Method GET URI /webwork2/Fall2006-Math1100-003/instructor/sets/ HTTP Headers Keep-Alive 300 Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.13) Gecko/20060413 Red Hat/1.0.8-1.4.1 Firefox/1.0.8 Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Connection keep-alive Referer https://www2.math.uncc.edu/webwork2/Fall2006-Math1100-003/ Accept-Encoding gzip,deflate Accept-Language en-us,en;q=0.5 Host www2.math.uncc.edu

I have looked at line 1847, and it appears to be the same code in that area as it is on my test server. The test server is functioning correctly. You are able to add problems with this message, but it keeps appearing. You can also click on the individual problem to edit the problem. I am running a Webwork2, pulled from CVS last week.

<| Post or View Comments |>


userIlya Kofman - Re: Homework Sets Editor- Error message  blueArrow
11/7/2006; 1:48:09 AM (reads: 218, responses: 0)
Hello,

It seems that we are getting a similar error on WW 2.30 Hmwk Sets Editor. (Error message below.) Was this error resolved somehow? Thank you.

Error messages

Can't use an undefined value as a HASH reference at /opt/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetList.pm line 1921.

Call stack

The information below can help locate the source of the problem.

* in WeBWorK::ContentGenerator::Instructor::ProblemSetList::printTableHTML called at line 493 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetList.pm * in WeBWorK::ContentGenerator::Instructor::ProblemSetList::body called at line 152 of /opt/webwork2/lib/WeBWorK/Template.pm * in WeBWorK::Template::template called at line 479 of /opt/webwork2/lib/WeBWorK/ContentGenerator.pm * in WeBWorK::ContentGenerator::content called at line 187 of /opt/webwork2/lib/WeBWorK/ContentGenerator.pm * in WeBWorK::ContentGenerator::go called at line 338 of /opt/webwork2/lib/WeBWorK.pm

Request information Method GET URI /webwork2/Math123_6860/instructor/sets/ HTTP Headers Referer http://www.math.csi.cuny.edu/webwork2/Math123_6860/ Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 Accept-Encoding gzip,deflate Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language en-us,en;q=0.5 Host 163.238.43.20

<| Post or View Comments |>


userSam Hathaway - Re: Homework Sets Editor- Error message  blueArrow
11/7/2006; 1:33:47 PM (reads: 202, responses: 1)
This is caused by commenting out the $courseFiles{problibs} hash completely in global.conf (rather than just leaving it empty). Some code assumed that hash would exist (even if it was empty), and couldn't handle the situation in which it was commented out. I just fixed this in rel-2-3-dev, and I'll include the fix in 2.3.1.

You can get the latest 2.3.x patches by running cvs -q up -dP -rrel-2-3-dev in both your webwork2 and pg directories. (Don't forget to restart Apache after updating.)

<| Post or View Comments |>


userIlya Kofman - Re: Homework Sets Editor- Error message  blueArrow
11/7/2006; 10:03:38 PM (reads: 235, responses: 0)
Thank you for a quick reply! After upgrading following your instructions, the error is fixed when clicking on Hmwk Sets Editor, but we get the same error when editing problems of an existing problem set (eg, click on name of problem set, or on the numbers in the "Edit Problems" column of the Hmwk Sets Editor). Hopefully the same fix but somewhere else? Thank you.

Error messages

Can't use an undefined value as a HASH reference at /opt/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetDetail.pm line 1152.

Call stack

The information below can help locate the source of the problem.

* in WeBWorK::ContentGenerator::Instructor::ProblemSetDetail::body called at line 152 of /opt/webwork2/lib/WeBWorK/Template.pm * in WeBWorK::Template::template called at line 480 of /opt/webwork2/lib/WeBWorK/ContentGenerator.pm * in WeBWorK::ContentGenerator::content called at line 188 of /opt/webwork2/lib/WeBWorK/ContentGenerator.pm * in WeBWorK::ContentGenerator::go called at line 338 of /opt/webwork2/lib/WeBWorK.pm

<| Post or View Comments |>


userSam Hathaway - Re: Homework Sets Editor- Error message  blueArrow
11/10/2006; 1:17:54 PM (reads: 171, responses: 0)
Ok, I think that's fixed too (as well as another instance of the problem in Course Administration).

<| Post or View Comments |>