Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

by Terra Graves -
Number of replies: 0

Trying to open a course (created in 2.0, currently upgraded to 2.3.  Can't open the course or backup.  Get this error.  Any thoughts?

 

Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

Debug info: Argument 2 passed to has_capability() must be an instance of context, boolean given, called in C:\inetpub\wwwroot\lib\modinfolib.php on line 1097 and defined 
Error code: codingerror
Stack trace:
  • line 406 of \lib\setuplib.php: coding_exception thrown
  • line 355 of \lib\accesslib.php: call to default_error_handler()
  • line 1097 of \lib\modinfolib.php: call to has_capability()
  • line 1072 of \lib\modinfolib.php: call to cm_info->update_user_visible()
  • line 327 of \lib\modinfolib.php: call to cm_info->obtain_dynamic_data()
  • line 1260 of \lib\modinfolib.php: call to course_modinfo->__construct()
  • line 1000 of \lib\completionlib.php: call to get_fast_modinfo()
  • line 47 of \report\progress\lib.php: call to completion_info->get_activities()
  • line 2627 of \lib\navigationlib.php: call to report_progress_extend_navigation_course()
  • line 1252 of \lib\navigationlib.php: call to global_navigation->add_course_essentials()
  • line 3041 of \lib\navigationlib.php: call to global_navigation->initialise()
  • line 781 of \lib\pagelib.php: call to navbar->has_items()
  • line 4 of \theme\afterburner\layout\default.php: call to moodle_page->has_navbar()
  • line 768 of \lib\outputrenderers.php: call to include()
  • line 715 of \lib\outputrenderers.php: call to core_renderer->render_page_layout()
  • line 105 of \backup\restorefile.php: call to core_renderer->header()
Average of ratings: -