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

Flat File (CSV) plug in message_provider issue

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2, 2.3.2
    • Fix Version/s: 2.2.7, 2.3.4
    • Component/s: Enrolments
    • Labels:
    • Environment:
      Ubuntu
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Test pre-requisites

      • 1 course with ID number 123 (no users enrolled)
      • 5 users with ID number 1 to 5
      • A CSV file as following

      add, student, 1, 123
      add, student, 2, 123
      add, student, 3, 123
      add, student, 4, 123
      add, student, 5, 123

      Test steps

      1. Enable, and configure the Flat File enrolment plugin
        • Enable notifications for each user
        • Set the path to the CSV file mentioned above
      2. Run the cron and make sure
        • The line "Running cron for enrol_flatfile..." is present but no errors occured
        • The users have been enrolled on the course
        • An email has been sent to the admin, and the students

      You might have to run the cron several times before the enrol_flatfile cron line appears
      Save your CSV file because it will be deleted after execution

      Show
      Test pre-requisites 1 course with ID number 123 (no users enrolled) 5 users with ID number 1 to 5 A CSV file as following add, student, 1, 123 add, student, 2, 123 add, student, 3, 123 add, student, 4, 123 add, student, 5, 123 Test steps Enable, and configure the Flat File enrolment plugin Enable notifications for each user Set the path to the CSV file mentioned above Run the cron and make sure The line "Running cron for enrol_flatfile..." is present but no errors occured The users have been enrolled on the course An email has been sent to the admin, and the students You might have to run the cron several times before the enrol_flatfile cron line appears Save your CSV file because it will be deleted after execution
    • Workaround:
      Hide

      Use another method for enrolment.

      Show
      Use another method for enrolment.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-30871-master

      Description

      When trying to use the flat file (CSV) plug in for course enrollments in Moodle 2.2, the following message is generated during the cron script:

      Running enrol crons if required...
      Running cron for enrol_flatfile...
      !!! Coding error detected, it must be fixed by a programmer: Could not load preference {$a}. Does the component and name you supplied to message_send() match a row in message_providers? Message providers must appear in the database so users can configure how they will be notified when they receive messages. !!!

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/13