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

Cron task "Creating passwords for new users" missing additional name fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6.1
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      The easiest way to test this is to this is to manually set a user preference for create_password for some users. You can also test this by using the uploaduser tool, or the with a DB auth plugin though I've not tried these.

      INSERT INTO mdl_user_preferences (userid, name, value) VALUES (20, 'create_password', '1');
      

      • run cron
      • find 'Creating passwords for new users...' in the output
        • Confirm that there were no errors displayed
      Show
      The easiest way to test this is to this is to manually set a user preference for create_password for some users. You can also test this by using the uploaduser tool, or the with a DB auth plugin though I've not tried these. INSERT INTO mdl_user_preferences (userid, name, value) VALUES (20, 'create_password', '1'); run cron find 'Creating passwords for new users...' in the output Confirm that there were no errors displayed
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-43451-master
    • Story Points:
      5
    • Sprint:
      FRONTEND Sprint 7

      Description

      Running cron after using the dev course creator reveals:

      Creating passwords for new users...
      ++ You need to update your sql to include additional name fields in the user object. ++
      * line 3570 of /lib/moodlelib.php: call to debugging()
      * line 5948 of /lib/moodlelib.php: call to fullname()
      * line 240 of /lib/cronlib.php: call to setnew_password_and_mail()
      * line 61 of /admin/cli/cron.php: call to cron_run()
      ++ You need to update your sql to include additional name fields in the user object. ++
      * line 3570 of /lib/moodlelib.php: call to debugging()
      * line 5795 of /lib/moodlelib.php: call to fullname()
      * line 5960 of /lib/moodlelib.php: call to email_to_user()
      * line 240 of /lib/cronlib.php: call to setnew_password_and_mail()
      * line 61 of /admin/cli/cron.php: call to cron_run()
      ++ You need to update your sql to include additional name fields in the user object. ++
      * line 3570 of /lib/moodlelib.php: call to debugging()
      * line 5948 of /lib/moodlelib.php: call to fullname()
      * line 240 of /lib/cronlib.php: call to setnew_password_and_mail()
      * line 61 of /admin/cli/cron.php: call to cron_run()
      ++ You need to update your sql to include additional name fields in the user object. ++
      * line 3570 of /lib/moodlelib.php: call to debugging()
      * line 5795 of /lib/moodlelib.php: call to fullname()
      * line 5960 of /lib/moodlelib.php: call to email_to_user()
      * line 240 of /lib/cronlib.php: call to setnew_password_and_mail()
      * line 61 of /admin/cli/cron.php: call to cron_run()
      ++ You need to update your sql to include additional name fields in the user object. ++
      * line 3570 of /lib/moodlelib.php: call to debugging()
      * line 5948 of /lib/moodlelib.php: call to fullname()
      * line 240 of /lib/cronlib.php: call to setnew_password_and_mail()
      * line 61 of /admin/cli/cron.php: call to cron_run()
      ++ You need to update your sql to include additional name fields in the user object. ++
      * line 3570 of /lib/moodlelib.php: call to debugging()
      * line 5795 of /lib/moodlelib.php: call to fullname()
      * line 5960 of /lib/moodlelib.php: call to email_to_user()
      * line 240 of /lib/cronlib.php: call to setnew_password_and_mail()
      * line 61 of /admin/cli/cron.php: call to cron_run()
      

        Attachments

          Activity

            People

            Assignee:
            dobedobedoh Andrew Nicols
            Reporter:
            dobedobedoh Andrew Nicols
            Peer reviewer:
            Petr Skoda
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Michael de Raadt
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

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