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

Error appears after setting restrictions on course. Only student can see error, admin and faculty are fine.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: Conditional activities
    • Labels:
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      An error suddenly popped up when a student account tried to access a course. Accessing from an admin/teacher account displays the course just fine though.

       This error appeared after a teacher set some restrictions on the course that they administered.

      Attached is the developer debug:

       
      Coding error detected, it must be fixed by a programmer: Missing or invalid ->t for date condition

      More information about this error
      ×Debug info:
      Error code: codingerror
      ×Stack trace:

      • line 71 of /availability/condition/date/classes/condition.php: coding_exception thrown
      • line 234 of /availability/classes/tree.php: call to availability_date\condition->__construct()
      • line 144 of /availability/classes/info.php: call to core_availability\tree->__construct()
      • line 114 of /availability/classes/info.php: call to core_availability\info->decode_availability()
      • line 487 of /availability/condition/completion/classes/condition.php: call to core_availability\info->get_availability_tree()
      • line 772 of /availability/classes/info.php: call to availability_completion\condition::completion_value_used()
      • line 547 of /course/renderer.php: call to core_availability\info::completion_value_used()
      • line 953 of /course/renderer.php: call to core_course_renderer->course_section_cm_completion()
      • line 855 of /course/renderer.php: call to core_course_renderer->course_section_cm()
      • line 1047 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
      • line 637 of /course/format/grid/renderer.php: call to core_course_renderer->course_section_cm_list()
      • line 375 of /course/format/grid/renderer.php: call to format_grid_renderer->make_block_topic0()
      • line 256 of /course/format/grid/format.php: call to format_grid_renderer->print_multiple_section_page()
      • line 290 of /course/view.php: call to require()

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            fdoydora Francis Lorenzo Doydora
            Participants:
            Component watchers:
            Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: