Forum archive 2000-2006

Arnold K. Pizer - WeBWorK 1.6 bug fix

Arnold K. Pizer - WeBWorK 1.6 bug fix

by Arnold Pizer -
Number of replies: 0
inactiveTopicWeBWorK 1.6 bug fix topic started 1/8/2001; 3:33:11 PM
last post 1/20/2001; 6:40:23 PM
userArnold K. Pizer - WeBWorK 1.6 bug fix  blueArrow
1/8/2001; 3:33:11 PM (reads: 1996, responses: 4)
WeBWorK 1.6 bug fix
We have made two bug fixes to WeBWorK version 1.6

The current version is: Version 1.6.01 1/8/01 and this is the version in the tar files as of 3pm on 1/8/00.

You can tell what version you have by looking at the first few lines of Global.pm or readme.first.

If you do not have version 1.6.01, you can download the three updated files:

http://webhost.math.rochester.edu/downloadwebwork/download/refer/updates/Global.pm
http://webhost.math.rochester.edu/downloadwebwork/download/refer/updates/PGanswermacros.pl
http://webhost.math.rochester.edu/downloadwebwork/download/refer/updates/PGanswermacros.pl.new

The only change in Global.pm is that at line 144, we have added the line (which was inadvertently left out) $webmaster = 'webmaster'; You probably want to redefine this, but $webmaster must be defined. You may want to edit your own file rather than download a new version. Your copy of Global.pm is found in the .../webwork/system/ directory.

PGanswermacros.pl and PGanswermacros.pl.new are exact copies of each other. There is also a PGanswermacros.pl.original in the distribution. We have made many changes to PGanswermacros.pl this fall and included PGanswermacros.pl.original as a backup. Unfortunately, there were errors in the new PGanswermacros.pl but they should be fixed in this update. Your copy of PGanswermacros.pl is found in the .../webwork/system/courseScripts/ directory.
Posted by Arnold K. Pizer on 1/8/01; 3:41:56 PM
from the dept.


 

<| Post or View Comments |>


userTerry McConnell - Re: WeBWorK 1.6 bug fix: error with Net/LocalCfg.pm  blueArrow
1/15/2001; 5:33:13 PM (reads: 2237, responses: 1)
Upgraded to 1.6 today with only 1 minor problem. Perl complained about no Net/LocalCfg.pm file (didn't have this with 1.5 and the perl installation has not been touched.) Moreover, I could find no mention of this file in the Net::*.3 man pages. So I just created a file with one line: 1; Perl seems happy now and 1.6 seems to work fine.

Maybe I should get a newer Net package? Do you use features in 1.6 that you didn't use in 1.5?

Btw, if you upgrade to Perl 5.06 it will break latex2html. The fixes are easy, but lack of support for latex2html is a problem.

<| Post or View Comments |>


userArnold K. Pizer - Re: WeBWorK 1.6 bug fix: error with Net/LocalCfg.pm  blueArrow
1/16/2001; 9:13:49 AM (reads: 2307, responses: 0)
WeBWork 1.6 does not use any features of the Net package that were not used in WeBWorK 1.5. This error is caused by using an old version of Net and was present with WeBWorK 1.5. There are several ways to fix this error. Most likely someone fixed it locally for your version 1.5 using the 3rd method below (basically the same thing you mentioned above but with the file in a different location) and that's why you didn't notice any problem with version 1.5.

Here are three methods that can be used to fix this problem. The first two are recommended are they are more robust but they do require root privileges. A forth method is to do what Terry did which also requires root privileges.

Net/LocalCfg.pm ERROR:

Another error that has been reported is the following:

Software error Can't locate Net/LocalCfg.pm in @INC (@INC contains: /www/webwork/system/ /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 .) at /usr/local/lib/perl5/site_perl/5.005/Net/Config.pm line 11. Please inform the webwork meister.

There are several ways around this error.

One way is to install a newer version of Net::SMTP.

The second way to to replace the offending line of /Net/Config.pm eval { require Net::LocalCfg }; by eval { local $SIG{__DIE__}; require Net::LocalCfg }; which is the line in newer versions.

The third way to to create a directory /www/webwork/system/Net and in that directory create the file LocalCfg.pm. This file should contain the single line 1; Both the directory and the file must be readable by the webserver (e.g set 755 permissions for both).

Arnie Pizer

<| Post or View Comments |>


userArnold K. Pizer - Re: WeBWorK 1.6 bug fix  blueArrow
1/20/2001; 6:40:23 PM (reads: 2193, responses: 0)
WeBWorK version 1.6 upgrade

We have made a number of minor upgrades to WeBWorK version 1.6

The current version is: Version 1.6.03 1/20/01 and this is the version in the tar files as of 6pm on 1/20/00.

You can tell what version you have by looking at the first few lines of Global.pm or readme.first.

If you version 1.6.01 or 1.6.02, you can safely use that version.

The major chnages in version 1.6.03 are

1. The tth binary file used for "formatted-text" output must now be downloaded directly from http://hutchinson.belmont.ma.us/tth/

2. The classlist routines are now more robust in that they check for illegal chacters (, = &) in all entries. For example, do not use these characters in a student's name in version 1.6.02

3. There have been a number of other minor enhansements and bug fixes. The bug fixes fix very obscure bugs so it is very unlikely these bugs in versions 1.6.01 or 1.6.02 will hurt anyone.

<| Post or View Comments |>