New users facing issues after upgrade from 3.2.1 to 3.5.5

New users facing issues after upgrade from 3.2.1 to 3.5.5

by Naga M -
Number of replies: 1

Hi All,

We recently upgraded moodle from 3.2.1 to 3.5.5 version.

The users who accessed the system before upgrade are able to access the courses.

But the users who got access before upgrade and login first time after 3.5.5 upgrade are facing below error.

And these users unable to access any course as well.

We installed moodle on Windows OS, PHP 7.0 & MySQ L8.0 verion

Please help us to resolve the issue.


  • line 4595 of \lib\navigationlib.php: call to settings_navigation->generate_user_settings()
  • line 4034 of \lib\navigationlib.php: call to settings_navigation->load_user_settings()
  • line 759 of \lib\pagelib.php: call to settings_navigation->initialise()
  • line 820 of \lib\pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 168 of \user\view.php: call to moodle_page->__get()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 4895 of \lib\navigationlib.php: call to has_capability()
  • line 4595 of \lib\navigationlib.php: call to settings_navigation->generate_user_settings()
  • line 4034 of \lib\navigationlib.php: call to settings_navigation->load_user_settings()
  • line 759 of \lib\pagelib.php: call to settings_navigation->initialise()
  • line 820 of \lib\pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 168 of \user\view.php: call to moodle_page->__get()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 4904 of \lib\navigationlib.php: call to has_capability()
  • line 4595 of \lib\navigationlib.php: call to settings_navigation->generate_user_settings()
  • line 4034 of \lib\navigationlib.php: call to settings_navigation->load_user_settings()
  • line 759 of \lib\pagelib.php: call to settings_navigation->initialise()
  • line 820 of \lib\pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 168 of \user\view.php: call to moodle_page->__get()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 4913 of \lib\navigationlib.php: call to has_capability()
  • line 4595 of \lib\navigationlib.php: call to settings_navigation->generate_user_settings()
  • line 4034 of \lib\navigationlib.php: call to settings_navigation->load_user_settings()
  • line 759 of \lib\pagelib.php: call to settings_navigation->initialise()
  • line 820 of \lib\pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 168 of \user\view.php: call to moodle_page->__get()
  • Context id 2940 does not have valid path, please use context_helper::build_all_paths()

  • line 482 of \lib\accesslib.php: call to debugging()
  • line 66 of \lib\myprofilelib.php: call to has_capability()
  • line 53 of \user\classes\output\myprofile\manager.php: call to core_myprofile_navigation()
  • line 215 of \user\view.php: call to core_user\output\myprofile\manager::build_tree()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 421 of \lib\myprofilelib.php: call to has_capability()
  • line 53 of \user\classes\output\myprofile\manager.php: call to core_myprofile_navigation()
  • line 215 of \user\view.php: call to core_user\output\myprofile\manager::build_tree()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 62 of \report\insights\lib.php: call to has_capability()
  • line 75 of \user\classes\output\myprofile\manager.php: call to report_insights_myprofile_navigation()
  • line 215 of \user\view.php: call to core_user\output\myprofile\manager::build_tree()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 96 of \report\log\lib.php: call to has_capability()
  • line 167 of \report\log\lib.php: call to report_log_can_access_user_report()
  • line 75 of \user\classes\output\myprofile\manager.php: call to report_log_myprofile_navigation()
  • line 215 of \user\view.php: call to core_user\output\myprofile\manager::build_tree()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 77 of \report\outline\lib.php: call to has_capability()
  • line 143 of \report\outline\lib.php: call to report_outline_can_access_user_report()
  • line 75 of \user\classes\output\myprofile\manager.php: call to report_outline_myprofile_navigation()
  • line 215 of \user\view.php: call to core_user\output\myprofile\manager::build_tree()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 85 of \report\stats\lib.php: call to has_capability()
  • line 153 of \report\stats\lib.php: call to report_stats_can_access_user_report()
  • line 75 of \user\classes\output\myprofile\manager.php: call to report_stats_myprofile_navigation()
  • line 215 of \user\view.php: call to core_user\output\myprofile\manager::build_tree()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 1251 of \grade\report\user\lib.php: call to has_capability()
  • line 75 of \user\classes\output\myprofile\manager.php: call to gradereport_user_myprofile_navigation()
  • line 215 of \user\view.php: call to core_user\output\myprofile\manager::build_tree()
Context id 2940 does not have valid path, please use context_helper::build_all_paths()
  • line 482 of \lib\accesslib.php: call to debugging()
  • line 554 of \lib\accesslib.php: call to has_capability()
  • line 443 of \competency\classes\plan.php: call to has_any_capability()
  • line 66 of \admin\tool\lp\lib.php: call to core_competency\plan::can_read_user()
  • line 75 of \user\classes\output\myprofile\manager.php: call to tool_lp_myprofile_navigation()
  • line 215 of \user\view.php: call to core_user\output\myprofile\manager::build_tree()


Average of ratings: -
In reply to Naga M

Re: New users facing issues after upgrade from 3.2.1 to 3.5.5

by Ken Task -
Picture of Particularly helpful Moodlers

Qualifications for this response ... none ... don't run windows, don't run MySQL version 8.x.x, and thus haven't seen the problem.  

However doing prelim for the true Windows experts, will ask about MySQL ... version 8.0.what?  Is it a GA release or one prior to that?

And some other info found ... not saying you should act ... so consider this to be just shared info ...

Compatibility with MySQL 8.0.x

https://tracker.moodle.org/browse/MDL-59098

Fix Version/s: 3.3.7, 3.4.4, 3.5.1

One of the postings in the tracker ...

Another limitation we definitely need to be mindful of (and a limitation we probably have to eventually document) is the fact that MySQL 8.0.4+ changed the auth plugin to caching_sha2_password (see here), so if you're setting up one of the newer versions for testing, you'll need to switch back to the old plugin for it to work with Moodle.
e.g.

--default-authentication-plugin=mysql_native_password

It looks like the mysqli connector doesn't have support for this method yet. See here

https://mysqlserverteam.com/mysql-8-0-4-new-default-authentication-plugin-caching_sha2_password/

https://mysqlserverteam.com/upgrading-to-mysql-8-0-default-authentication-plugin-considerations/

All of the errors you show involve context path.

https://docs.moodle.org/36/en/How_to_rebuild_context_paths

'SoS', Ken