I tried deleting a course (as Webwork administrator) on my university's Webwork server but got the error message:
***********
An error occured while deleting the course 2017_Fall_Discrete_Structures_03160_2_Nguyen:
DBD::mysql::db do failed: Incorrect table name '2017_Fall_Discrete_Structures_03160_2_Nguyen_global_user_achievement' at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 828.
************
I previously had renamed the course, which worked the first time (but also threw an error message), and now I can't rename it again. Here's the error message if I try to rename it again:
************
WeBWorK error
An error occured while processing your request. For help, please send mail to this site's webmaster (root@localhost), including all of the following information as well as what what you were doing when the error occured.
Thu Jul 27 21:15:53 2017
Warning messages
Error messages
[missing table]
Call stack
The information below can help locate the source of the problem.
in Exception::Class::Base::throw called at line 820 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::handle_error called at line 415 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::_get_fields_where_prepex called at line 383 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::get_fields_where called at line 854 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::getSettingValue called at line 1058 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/CourseAdmin.pm
in WeBWorK::ContentGenerator::CourseAdmin::rename_course_confirm called at line 454 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/CourseAdmin.pm
in WeBWorK::ContentGenerator::CourseAdmin::body called at line 155 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm
in WeBWorK::Template::template called at line 531 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::content called at line 380 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/CourseAdmin.pm
in WeBWorK::ContentGenerator::CourseAdmin::content called at line 203 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::go called at line 382 of /opt/webwork/webwork2/lib/WeBWorK.pm
************
Appreciate help in fixing this. Thanks.