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

Call to undefined function core_login_get_return_url() in /lib/moodlelib.php on line 4441

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.4
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable sign-up in the site via the e-mail auth plugin
      2. Create a new user account via the sign-up form (using an existing email account to retrieve the confirmation email)
      3. As admin, edit the user created in the previous step and tick the "Force change password" checkbox
      4. Open the new user account confirmation email link received by email
      5. You should be redirected to the change password page
      Show
      Enable sign-up in the site via the e-mail auth plugin Create a new user account via the sign-up form (using an existing email account to retrieve the confirmation email) As admin, edit the user created in the previous step and tick the "Force change password" checkbox Open the new user account confirmation email link received by email You should be redirected to the change password page
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-56942-master

      Description

      While testing autologin in the Mobile app I got this error with a user that had forcechangepassword enabled:

      Call to undefined function core_login_get_return_url() in /lib/moodlelib.php on line 4441
      

      It only happened once, I wasn't able to reproduce it. I don't see any require to import login/lib.php in that file.

      Steps to reproduce:

      1. Enable sign-up in the site via the e-mail auth plugin
      2. Create a new user account via the sign-up form (using an existing email account to retrieve the confirmation email)
      3. As admin, edit the user created in the previous step and tick the "Force change password" checkbox
      4. Open the new user account confirmation email link received by email
      5. You should see that error

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jan/17