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

Invalid User error when add new user

    XMLWordPrintable

Details

    • Any
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-60824-master-profilefield
    • Hide
      1. Login as an admin.
      2. Navigate to "Site administration / Users / Accounts / User profile fields"
      3. Under "Create a new profile field", select "Text input"
      4. Enter a "Short name" and "Name" for the new profile field.
      5. Save the changes.
      6. Navigate to "Site administration / Users / Accounts / Add a new user"
        • Confirm that the form loads correctly.
      7. Fill out the form to add the new user's details.
      8. Save the changes.
        • Confirm that the new user has been successfully created.
      9. Edit the user's profile and save the changes.
        • Confirm that the user's details are successfully updated.
      Show
      Login as an admin. Navigate to " Site administration / Users / Accounts / User profile fields " Under " Create a new profile field ", select " Text input " Enter a " Short name " and " Name " for the new profile field. Save the changes. Navigate to " Site administration / Users / Accounts / Add a new user " Confirm that the form loads correctly. Fill out the form to add the new user's details. Save the changes. Confirm that the new user has been successfully created. Edit the user's profile and save the changes. Confirm that the user's details are successfully updated.

    Description

      i get error " invalid user " when i tried add new user .

      i have custom profile fields and i upgrade profile_field_base::__construct() for third argument but I keep getting this error.i think so ;

      context_user::instance() failed because new user id =  -1 

       

      Attachments

        Issue Links

          Activity

            People

              mudrd8mz David Mudrák (@mudrd8mz)
              ceremy çağlar mersinli
              Jun Pataleta Jun Pataleta
              Jake Dallimore Jake Dallimore
              Gladys Basiana Gladys Basiana
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/Jan/18