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

User_picture class constructor throws exception when field is not present in user

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5 regressions, 4.5.5, 5.0.2
    • User management

      When Moodle tries to create a new user_picture for a specific user, it checks if the user is missing any field required for creating the user picture. In case that happens, it should show a debugging message indicating the missing field and the user which doesn´t have that field. However, with the last update, that message tries to concatenate the text string to the user object, which results in an exception instead of a simple debugging message.

      For more information, the error happens at "/lib/classes/output/user_picture.php" at line 109.

            pholden Paul Holden
            ivofdez Ivan Fernandez Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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