WeBWorK Main Forum

Issue with Answer selection errors after upgrade to 2.19

Re: Issue with Answer selection errors after upgrade to 2.19

by Alex Jordan -
Number of replies: 1
I do not get an issue like that when I copy this problem and use it on a 2.19 server. (I did need to remove blank lines in between the [`` and ``] though. But I think those blank lines are just an artifact from when you pasted the problem code here.)

Can you check that your webwork2 and pg repositories are where they should be? What do you get from:

cd /opt/webwork/webwork2
git status
and from:

cd /opt/webwork/pg
git status
and then have you rebuilt dependencies and restarted both webwork2 and webwork2-job-queue?

cd /opt/webwork/webwork2/htdocs
npm ci
cd /opt/webwork/pg/htdocs
npm ci
sudo systemctl restart webwork2
sudo systemctl restart webwork2-job-queue




In reply to Alex Jordan

Re: Issue with Answer selection errors after upgrade to 2.19

by Bianca Sosnovski -
Hi Alex,

Thanks for your help!

As you suggested, I ran "git status" and discovered that some files in the macros folder had been modified.

Here’s what happened: When we built WeBWorK 2.19 from scratch, many macros used for the college’s problem bank were missing. To restore them, we copied the necessary files from the older server (2.16) to the new one. However, this led to some duplicates, which caused rendering issues. After reviewing the macros, we deleted the redundant files.

Unfortunately, in the process, PG.pl and a couple of parser files were mistakenly replaced with the older 2.16 versions. 🤦‍♀️ Since these files differ from those in 2.19, this caused the issue.

Thankfully, after checking "git status", I was able to identify the affected files and restore them to their correct 2.19 versions. This also resolved other issues which I posted here (https://webwork.maa.org/moodle/mod/forum/discuss.php?d=8651).

Now our Webwork server is running perfectly! I love it!!

Thanks again!