Background: We have migrated a Moodle 2.5+ site from Windows Server 2016 to Linux, which was our first step in updating the site to a current build. The migration went well; so far all end-user functionality appears to be fully operational.
Issue: Error at Site administration/Users/Accounts/Browse list of users. The error message with developer debugging enabled is:
- Debug info: Unknown column 'wwwroot' in 'field list'
- SELECT id, wwwroot, name FROM mdl_mnet_host ORDER BY id
- [array (
- Error code: dmlreadexception
- Stack trace:
- line 423 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1005 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1226 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1177 of /lib/dml/moodle_database.php: call to moodle_database->get_records_select()
- line 133 of /user/filters/lib.php: call to moodle_database->get_records()
- line 46 of /user/filters/lib.php: call to user_filtering->get_field()
- line 160 of /admin/user.php: call to user_filtering->user_filtering()
The mnet_host table contains 2 rows; one contains wwwtpdbusr=http://localhost/moodle, ip_address=127.0.0.1, name=blank, and the other contains wwwtpdbusr=empty, ip_address=empty, name=All Hosts. Other than the id field, these are the only fields with different values between the 2 rows.
Verified that the wwwroot setting in config.php is set to the correct url, 'http://mydomain.com'. Updated configuration
items that contained Windows file paths to the default value suggested by
I'm hoping that there is a configuration setting that was set for Windows, but needs a different value on a Linux host. I've searched through the configuration settings and I was unable to find anything that was obvious to me. The only references to localhost are in the chat_serverhost (value=localhost) and HTTP proxybypass (values=localhost, 127.0.0.1) settings.
Please let me know if you have any guidance or additional questions that may lead me to a resolution for this issue.