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

Exception in "Other users" page if user does not have "moodle/role:assign"

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide
      1. Log in as admin
      2. Create a test user
      3. Navigate to Users > Permissions > Define roles in site administration
      4. Edit the Manager role
      5. Remove permission for moodle/role:assign capability and save
      6. Navigate to Users > Permissions > Assign system roles in site administration
      7. Assign test user to Manager role
      8. Create a new course
      9. Log in as test user
      10. Navigate to course
      11. Press Participants from secondary navigation
      12. Select Permissions > Other users from tertiary navigation
      13. Confirm page loads without the following exception:

        Exception - Argument 1 passed to renderer_base::render() must implement interface renderable, instance of stdClass given, called in [dirroot]/enrol/otherusers.php on line 99
         
        Debug info:
        Error code: generalexceptionmessage 
        

      14. Confirm Assign roles button is not present next to tertiary navigation
      Show
      Log in as admin Create a test user Navigate to Users > Permissions > Define roles in site administration Edit the Manager role Remove permission for moodle/role:assign capability and save Navigate to Users > Permissions > Assign system roles in site administration Assign test user to Manager role Create a new course Log in as test user Navigate to course Press Participants from secondary navigation Select Permissions > Other users from tertiary navigation Confirm page loads without the following exception: Exception - Argument 1 passed to renderer_base::render() must implement interface renderable, instance of stdClass given, called in [dirroot]/enrol/otherusers.php on line 99   Debug info: Error code: generalexceptionmessage Confirm Assign roles button is not present next to tertiary navigation

      Found while testing MDL-73721

      Warning: Creating default object from empty value in /var/www/html/enrol/otherusers.php on line 98
       
      Exception - Argument 1 passed to renderer_base::render() must implement interface renderable, instance of stdClass given, called in [dirroot]/enrol/otherusers.php on line 99
       
      More information about this error
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:
       
          line 226 of /lib/outputrenderers.php: TypeError thrown
          line 99 of /enrol/otherusers.php: call to renderer_base->render()
      

            pholden Paul Holden
            pholden Paul Holden
            Ilya Tregubov Ilya Tregubov
            Shamim Rezaie Shamim Rezaie
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m

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