Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-24571

error accessing course as student when course not available to students

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Course
    • Labels:
      None
    • Environment:
      used moodle qa server

      Description

      QA testing http://tracker.moodle.org/browse/MDLQA-465 to ensure a student can't get into a course when the unavailable to students setting is on.

      This works fine. However when a student tries to enter the course through the correct url they see an error

      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
      Debug info: Argument 1 passed to global_navigation::add_course_essentials() must be an instance of navigation_node, boolean given, called in /html/lib/navigationlib.php on line 992 and defined
      Stack trace:

      • line 309 of /lib/setuplib.php: coding_exception thrown
      • line 1900 of /lib/navigationlib.php: call to default_error_handler()
      • line 992 of /lib/navigationlib.php: call to global_navigation->add_course_essentials()
      • line 2296 of /lib/navigationlib.php: call to global_navigation->initialise()
      • line 637 of /lib/pagelib.php: call to navbar->has_items()
      • line 4 of /theme/binarius/layout/general.php: call to moodle_page->has_navbar()
      • line 622 of /lib/outputrenderers.php: call to include()
      • line 580 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      • line ? of unknownfile: call to core_renderer->header()
      • line 1071 of /lib/setuplib.php: call to call_user_func_array()
      • line ? of unknownfile: call to bootstrap_renderer->__call()
      • line 2430 of /lib/weblib.php: call to bootstrap_renderer->header()
      • line 2406 of /lib/moodlelib.php: call to notice()
      • line 50 of /course/view.php: call to require_login()

        Attachments

          Activity

            People

            • Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              colchambers Colin Chambers
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10