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

PayPal Enrolment Message Provider Not Installed

    XMLWordPrintable

Details

    • Any
    • MOODLE_21_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MDL-31429_paypal_messages
    • Hide

      Turn off the notifications in PayPal enrollment plugin settings, but this does not prevent errors when a PayPal enrollment fails for some other reason and message_send() is called to send a notification of the error to the admin.

      Show
      Turn off the notifications in PayPal enrollment plugin settings, but this does not prevent errors when a PayPal enrollment fails for some other reason and message_send() is called to send a notification of the error to the admin.
    • Hide

      As admin go to site admin > plugins > enrolments > manage enrol plugins
      Enable ims enterprise, flat file and paypal.
      Go to my profile settings > messaging and check that ims enterprise, flat file and paypal enrolment messages appear.
      Disable the 3 enrolment plugins.
      Refresh your messaging settings and check that the 3 enrolment messages no longer appear.

      Re-enable paypal.

      Go into the paypal enrolment options.
      Enable the notifications to students, teachers, and/or admins on the PayPal enrolment settings page.
      Set Allow PayPal enrolments to yes.
      Enrol into a course via PayPal.
      You should receive the notifications and the message and body strings should have been found.

      Show
      As admin go to site admin > plugins > enrolments > manage enrol plugins Enable ims enterprise, flat file and paypal. Go to my profile settings > messaging and check that ims enterprise, flat file and paypal enrolment messages appear. Disable the 3 enrolment plugins. Refresh your messaging settings and check that the 3 enrolment messages no longer appear. Re-enable paypal. Go into the paypal enrolment options. Enable the notifications to students, teachers, and/or admins on the PayPal enrolment settings page. Set Allow PayPal enrolments to yes. Enrol into a course via PayPal. You should receive the notifications and the message and body strings should have been found.

    Description

      The PayPal enrollment plugin uses message_send() to send notifications of failures to admins and of successes to students, teachers, and admins; however, the message provider was not installed in the 2.0 upgrade so all of these messages are failing. enrol/paypal/db/messages.php does not exist.

      I'm attaching a patch that creates enrol/paypal/db/messages.php, bumps the version of enrol/paypal by 1 so that the message provider can be installed, and also fixes a few get_string() calls that were not looking for the strings in the correct component, which should be enrol.

      Attachments

        Issue Links

          Activity

            People

              andyjdavis Andrew Davis
              cfollin Chris Follin
              Jason Fowler Jason Fowler
              Sam Hemelryk Sam Hemelryk
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/12