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

Bug in Admin-CLI Script delete_course.php: Fehler: Call to undefined function course_get_format()

XMLWordPrintable

    • MOODLE_405_STABLE

      Default exception handler: Fehler: Call to undefined function course_get_format() Debug:
      Error code: generalexceptionmessage

      • line 4940 of /lib/moodlelib.php: Error thrown
      • line 4687 of /lib/moodlelib.php: call to remove_course_contents()
      • line 118 of /admin/cli/delete_course.php: call to delete_course()

      !!! Fehler: Call to undefined function course_get_format() !!!

       

      I added the following line in my local Moodle (in delete_course.php)

      require_once($CFG->dirroot . '/course/lib.php');

      This seems to have fixed the bug.  Can you please correct this in the Moodle/Repo.

      Thanks!

            Unassigned Unassigned
            ljupka.grabsch@haw-landshut.de Ljupka Grabsch
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.