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

More information about this error

Debug info: Argument 1 passed to calendar_information::prepare_for_view() must be an instance of stdClass, boolean given, called in [dirroot]/calendar/view.php on line 96 and defined
Error code: codingerror
Stack trace: 
  • line 411 of /lib/setuplib.php: coding_exception thrown
  • line 2752 of /calendar/lib.php: call to default_error_handler()
  • line 96 of /calendar/view.php: call to calendar_information->prepare_for_view()
Output buffer: <br />
<b>Notice</b>:  Trying to get property of non-object in <b>/var/www/html/moodle-support/calendar/view.php</b> on line <b>84</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/var/www/html/moodle-support/calendar/view.php</b> on line <b>86</b><br />