I need help. When updating moodle I always get "Error reading from database"
Some history and more information.
-- Red Hat Enterprise Linux Server release 7.8 (Maipo)
--PHP 7.4.7 (cli) (built: Jun 9 2020 10:57:17) ( NTS )
-- We were running moodle 3.8.6
-- We first updated mariadb from mysqld 5.5.47-MariaDB to mysql Ver 15.1 Distrib 10.4.17-MariaDB, for Linux
(x86_64) using readline 5.1. All seemed fine.
-- I checked the requirements (Environment) and everything is ok for 3.10 Upwards (also for 3.9)
-- I then tried to install '3.10+ (Build: 20210108)'
-- I always get "Error reading from database" I also get this when I try to upgrade to 3.9. We are using the Adaptable theme. I also tried updating after I use the boost theme. Same error.
-- I used moodle's debug mode. Here is some information from it from 3.10. I can send the complete log
Error reading from database
Debug info: Unknown column 'sortorder' in 'order clause'
SELECT * FROM mdl_license ORDER BY sortorder ASC
[array (
)]
Error code: dmlreadexception
Stack trace:
line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 1273 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1500 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 232 of /lib/licenselib.php: call to moodle_database->get_records_select()
line 362 of /lib/licenselib.php: call to license_manager::get_licenses()
line 379 of /lib/licenselib.php: call to license_manager::get_active_licenses()
line 33 of /admin/settings/license.php: call to license_manager::get_active_licenses_as_array()
line 8762 of /lib/adminlib.php: call to require()
line 19 of /admin/settings.php: call to admin_get_root()
Error reading from database
Debug info: Unknown column 'sortorder' in 'order clause'
SELECT * FROM mdl_license ORDER BY sortorder ASC
[array (
)]
Error code: dmlreadexception
Stack trace:
line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 1273 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1500 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 232 of /lib/licenselib.php: call to moodle_database->get_records_select()
line 362 of /lib/licenselib.php: call to license_manager::get_licenses()
line 379 of /lib/licenselib.php: call to license_manager::get_active_licenses()
line 33 of /admin/settings/license.php: call to license_manager::get_active_licenses_as_array()
line 8762 of /lib/adminlib.php: call to require()
line 4351 of /lib/navigationlib.php: call to admin_get_root()
line 4214 of /lib/navigationlib.php: call to settings_navigation->load_administration_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 135 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 341 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 235 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1239 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 642 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
line 83 of /theme/adaptable/layout/includes/head.php: call to core_renderer->standard_head_html()
line 179 of /theme/adaptable/layout/includes/header.php: call to require_once()
line 30 of /theme/adaptable/layout/columns2.php: call to require_once()
line 1374 of /lib/outputrenderers.php: call to include()
line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2828 of /lib/outputrenderers.php: call to core_renderer->header()
line 390 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
-- Here are the plugins that are installed before I updated and I installed these after I updated but before I took moodle out of maintenence mode.
block_course_contents_moodle34_2018020100.zip block_massaction_moodle33_2018013000.zip
block_faces_moodle35_2018111200.zip block_poll_moodle35_2018052500.zip
block_gchat_moodle24_2012091300.zip
mod_bigbluebuttonbn_moodle310_2019101003.zip mod_jazzquiz_moodle37_2019073000.zip
mod_hvp_moodle39_2020080400.zip mod_zoom_moodle310_2020120800.zip
mod_icontent_moodle38_2020041200.zip
qtype_ddimageortext_moodle29_2015051000.zip
-- I also have the database query log.