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

Adding user to role in course category causes: "The user_selector classes do not support custom list of extra identity fields any more..."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8.4
    • 3.7.1, 3.8
    • Administration
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • Hide
      1. Navigate to Site administration > Development > Debugging
      2. Set Display debug messages to Yes
      3. Set Debug messages to Developer
      4. Press Save changes
      5. Navigate to Site administration > Users > Permissions > User policies
      6. Set Show user identity to Email address & Country
      7. Press Save changes
      8. Create a new user: Bob Smith
      9. Navigate to Site administration > Courses > Manage courses and categories
      10. Press the Actions menu icon next to the Miscellaneous category, select Assign roles
      11. Press the Manager role
      12. Under Potential users search for Bob
      13. Check your web server logs (placed by default in /var/log/apache2/error.log) for the absence of debugging messages like the following

      [Thu Aug 22 17:11:05.076267 2019] [php7:notice] [pid 5423] [client 192.168.122.1:34614] Debugging: The user_selector classes do not support custom list of extra identity fields any more. Instead, the user identity fields defined by the site administrator will be used to respect the configured privacy setting. in \n* line 112 of /user/selector/lib.php: call to debugging()\n* line 48 of /admin/roles/classes/assign_user_selector_base.php: call to user_selector_base->__construct()\n* line 60 of /user/selector/search.php: call to core_role_assign_user_selector_base->__construct()\n, referer: http://MOODLE/admin/roles/assign.php?contextid=3&returnurl=%2Fcourse%2Fmanagement.php%3Fcategoryid%3D1&roleid=1
      

       You can use the following command from the console to see the latest messages in the error.log file:

      tail -f /var/log/apache2/error.log

      Show
      Navigate to Site administration > Development > Debugging Set Display debug messages to Yes Set Debug messages to Developer Press Save changes Navigate to Site administration > Users > Permissions > User policies Set Show user identity to Email address & Country Press Save changes Create a new user: Bob Smith Navigate to Site administration > Courses > Manage courses and categories Press the Actions menu icon next to the Miscellaneous category, select Assign roles Press the Manager role Under Potential users search for Bob Check your web server logs (placed by default in /var/log/apache2/error.log) for the absence of debugging messages like the following [Thu Aug 22 17:11:05.076267 2019] [php7:notice] [pid 5423] [client 192.168.122.1:34614] Debugging: The user_selector classes do not support custom list of extra identity fields any more. Instead, the user identity fields defined by the site administrator will be used to respect the configured privacy setting. in \n* line 112 of /user/selector/lib.php: call to debugging()\n* line 48 of /admin/roles/classes/assign_user_selector_base.php: call to user_selector_base->__construct()\n* line 60 of /user/selector/search.php: call to core_role_assign_user_selector_base->__construct()\n, referer: http://MOODLE/admin/roles/assign.php?contextid=3&returnurl=%2Fcourse%2Fmanagement.php%3Fcategoryid%3D1&roleid=1  You can use the following command from the console to see the latest messages in the error.log file: tail -f /var/log/apache2/error.log

      To reproduce (debugging at Developer level)...

      • Pull up a Course Category page
      • Select 'Assign roles' from the settings cog 
      • Select a role (e.g. Manager)
      • Search for and add any user you like

       

      Check logs, and you should see...

      Debugging: The user_selector classes do not support custom list of extra identity fields any more. Instead, the user identity fields defined by the site administrator will be used to respect the configured privacy setting. in

      • line 112 of /user/selector/lib.php: call to debugging()
      • line 48 of /admin/roles/classes/assign_user_selector_base.php: call to user_selector_base->__construct()
      • line 60 of /user/selector/search.php: call to core_role_assign_user_selector_base->__construct()
      • referer: ........./admin/roles/assign.php?contextid=3&roleid=1

            pholden Paul Holden
            howardsmiller Howard Miller
            Neill Magill Neill Magill
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 40 minutes
                1h 40m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.