openwebwork / webwork.maa.org

Information about the webwork.maa.org server
0 stars 0 forks source link

Moodle - (database needs reformatting) "PG code macros" #8

Closed taniwallach closed 4 years ago

taniwallach commented 4 years ago

https://test1.webwork.maa.org/moodle/course/view.php?id=5

Error reading from database
Debug info: Unknown column 'introformat' in 'field list'
SELECT id, name, intro, introformat, completionentries, timeavailablefrom, timeavailableto FROM mdl_data WHERE id = ?
[array (
0 => '7',
)]
Error code: dmlreadexception
Stack trace:
line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 1247 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1587 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 1559 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 1538 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 4661 of /mod/data/lib.php: call to moodle_database->get_record()
line 469 of /course/lib.php: call to data_get_coursemodule_info()
line 670 of /lib/modinfolib.php: call to get_array_of_activities()
line 462 of /lib/modinfolib.php: call to course_modinfo::inner_build_course_cache()
line 417 of /lib/modinfolib.php: call to course_modinfo->__construct()
line 2168 of /lib/modinfolib.php: call to course_modinfo::instance()
line 247 of /completion/classes/manager.php: call to get_fast_modinfo()
line 284 of /completion/classes/manager.php: call to core_completion\manager::can_edit_bulk_completion()
line 4083 of /course/lib.php: call to core_completion\manager::get_available_completion_tabs()
line 4411 of /lib/navigationlib.php: call to course_get_user_administration_options()
line 4141 of /lib/navigationlib.php: call to settings_navigation->load_course_settings()
line 769 of /lib/pagelib.php: call to settings_navigation->initialise()
line 830 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 3521 of /lib/navigationlib.php: call to moodle_page->__get()
line 4489 of /lib/outputrenderers.php: call to navbar->get_items()
line 44 of /theme/boost/layout/columns2.php: call to core_renderer->region_main_settings_menu()
line 1374 of /lib/outputrenderers.php: call to include()
line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 1941 of /lib/setuplib.php: call to core_renderer->header()
line 98 of /enrol/index.php: call to bootstrap_renderer->__call()
nadavkav commented 4 years ago

See my comments at #7 ("Moodle - Undefined property: stdClass::$introformat")

mgage commented 4 years ago

Fixed by reimporting the database and upgrading one step at a time from moodle 1.9 to 3.8