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

PHP error while using enrol_manual_enrol_users web service with invalid users

XMLWordPrintable

      After upgrading to Version 4.5.3+ (Build: 20250318) , some calls to webservice/rest/server.php?wsfunction=enrol_manual_enrol_users&... yield the following error response:

      {"exception":"TypeError","message":"core\\user::get_name_placeholders(): Argument #1 ($user) must be of type stdClass, bool given, called in \/moodle\/html\/moodle\/lib\/enrollib.php on line 3677"}

       

        1. Screenshot 2025-05-28 at 6.20.01 pm.png
          91 kB
          David Woloszyn
        2. MDL-84996.png
          260 kB
          Ron Carl Alfon Yu

            pholden Paul Holden
            fortiphyd Fortiphyd
            Yusuf Wibisono Yusuf Wibisono
            David Woloszyn David Woloszyn
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 20 minutes
                4h 20m

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