Forum archive 2000-2006

Lars Jensen - error when cloning ww2 course

Lars Jensen - error when cloning ww2 course

by Arnold Pizer -
Number of replies: 0
inactiveTopicerror when cloning ww2 course topic started 8/20/2004; 2:03:28 AM
last post 8/20/2004; 11:05:53 AM
userLars Jensen - error when cloning ww2 course  blueArrow
8/20/2004; 2:03:28 AM (reads: 851, responses: 3)
From the admin course, when creating a new course by cloning the old course, I get the error below. I'm not sure what it means. The cloned course seems to be created OK, except that the problem sets from the original course is not included in the cloned course (is this supposed to happen?).

Any clue about the error?

Thanks, Lars.

------------


Software Warnings

WeBWorK has encountered warnings while attempting to process this problem. It is likely that this indicates an error or ambiguity in the problem itself. If you are a student, contact your professor to have the problem corrected. If you are a professor, please consut the warning output below for more informaiton.

Warning messages

* Argument "" isn't numeric in numeric eq (==) at /opt/webwork2/webwork-modperl/lib/WeBWorK/Utils/CourseManagement.pm line 195.

* There is no log file for the hosted_courses facility defined.

<| Post or View Comments |>


userMichael Gage - Re: error when cloning ww2 course  blueArrow
8/20/2004; 9:16:51 AM (reads: 1005, responses: 0)
The error on line 195 is because some permission level is defined, but not numeric. Possibly global_user? I've added it to the bug list. It's not serious.

For the second error: Add the following line to the file courses/admin/course.conf (it provides a location for the log file which lists which courses have been created.)

# Admin log for listing courses created



$webworkFiles{logs}->{hosted_courses} = "$courseDirs{logs}/hosted_courses.log";

Every time you create a new course a line will be added to this log with the pertinent information -- course name, institution, contact information, etc.

The directories and files are copied from the model course, but the databases are not -- so it is not a true cloning. The homework sets are not automatically created. If, for example, you are creating a new version of a course you taught last year you should first export all of the sets to set definition files in the old course. That saves the homework set structure to the disk. Then create the new course, using the old one as a model. All files and links will be copied over. You can then recreate the sets by importing the set definition files.

If you really want a complete clone, you should also export the class list before creating the new course and then re-import that classList.lst file into the new course. You might do this if you are moving a gdbm course to an sql course. (There may eventually be faster tools to do this, but for now this is a reasonable work-around.)

<| Post or View Comments |>


userLars Jensen - Re: error when cloning ww2 course  blueArrow
8/20/2004; 10:56:01 AM (reads: 1008, responses: 0)
Hi Mike,

Thanks!

1) Will the extra line for courses.conf be added to cvs?

2) Is it correct that the even without the extra line in course.conf, the log file is recreated next time webwork is restarted?

Lars.

<| Post or View Comments |>


userMichael Gage - Re: error when cloning ww2 course  blueArrow
8/20/2004; 11:05:53 AM (reads: 1011, responses: 0)
1) Will the extra line for courses.conf be added to cvs?

2) Is it correct that the even without the extra line in course.conf, the log file is recreated next time webwork is restarted?

The line is only added to the courses.conf for the admin course -- it is not used in any other course. We should put it in the documentation on setting up the admin course.

The log is not created -- the error message refers to the fact that the variable $webworkFiles{logs}->{hosted_courses} is undefined and therefore WeBWorK doesn't know where to create the log file.

-- Mike

<| Post or View Comments |>