Thank you for the response. Based on the logs, the user was actually able to login and upon logging in, this error message appears. I've set the debugging to developer and got this:
Debug info: ERROR: invalid input syntax for type bigint: "courseindexpage"
SELECT * FROM mdl_course WHERE id = $1
[array (
0 => 'courseindexpage',
)]
Error code: dmlreadexception
Stack trace:
line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 329 of /lib/dml/pg
sql_native_moodle_database.php: call to moodle_database->query_end()
line 977 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 1671 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql()
line 1643 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 1622 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 390 of /theme/moove/lib.php: call to moodle_database->get_record()
line 372 of /theme/moove/lib.php: call to theme_moove_is_course_available_to_display_in_navbar()
line 282 of /theme/moove/lib.php: call to theme_moove_delete_menuitems()
line 89 of /theme/moove/layout/mydashboard.php: call to theme_moove_extend_flat_navigation()
line 1396 of /lib/outputrenderers.php: call to include()
line 1326 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 165 of /my/index.php: call to core_renderer->header()