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

IMS Enterprise file enrolment - Call to undefined function course_get_format

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.4.4
    • Component/s: Course, Enrolments
    • Labels:

      Description

      I am having an issue running the IMS Enterprise through cron in 2.4.2 and 2.4.3 .../moodle/admin/cli/cron.php (via command line). When used that way, the course seems to be partly created the exits the cron process. This happens when I am trying to register a new course or users with IMSenterprise enrol feature?

      Here's the relevant part of the cron.php:

      IMS Enterprise enrol cron process launched at lundi 25 mars 2013, 10:35
      Found file /server_path_to_moodle/moodle/enrol/imsenterprise/uploads/imsenterprise-enrol.xml
      PHP Fatal error:  Call to undefined function course_get_format() in /server_path_to_moodle/moodle/lib/blocklib.php on line 2159
      
      __________________________________________________________________
      <?xml version="1.0" encoding="utf-8"?>
      <enterprise>
        <properties>
          <datasource>Datasource</datasource>
          <datetime>2013-03-25</datetime>
        </properties>
        <group recstatus="3">
          <sourcedid>
            <source>Datasource</source>
            <id>2013-2-AAA2222-GT</id>
          </sourcedid>
          <description>
            <short>2013-2-AAA2222-GT Subject Lorem ipsum dolor</short>
            <long>Subject Lorem ipsum dolor</long>
            <full>Objective:Lorem ipsum dolor sit amet, consectetur adipiscing elit.</full>
          </description>
          <org>
            <orgname>Some University</orgname>
            <orgunit>Some Department</orgunit>
          </org>
        </group>
      </enterprise>
      __________________________________________________________________
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  7 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13