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

Can not reset profile for all users (+123.000)

XMLWordPrintable

    • MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-54968-master
    • Hide

      Repeat testing instructions from MDL-46878

      Repeat testing instructions from MDL-53425 but edit $count in dashboard_generator_cli.php to be something smaller. The problem in this issue was not the number of users but the existence of corrupted data.

      Show
      Repeat testing instructions from MDL-46878 Repeat testing instructions from MDL-53425 but edit $count in dashboard_generator_cli.php to be something smaller. The problem in this issue was not the number of users but the existence of corrupted data.

      Moodle 3.1+ (Build: 20160616)
      PostgreSQL 9.3

      About 123.000 users. I'm trying to reset all profile for all users (Dashboard / Site administration / Appearance / Default profile page). After I click the button "Reset profile for all users" i got this error message:

      Debug info: SELECT id FROM

      {user}

      WHERE id = ? AND deleted = ?
      [array (
      0 => '109527',
      1 => 0,
      )]
      Error code: invaliduser

      Stack trace:

      line 1502 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      line 1478 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      line 6503 of /lib/accesslib.php: call to moodle_database->get_record()
      line 159 of /my/lib.php: call to context_user::instance()
      line 44 of /user/profilesys.php: call to my_reset_page_for_all_users()

            marina Marina Glancy
            caiado Ricardo Caiado
            Jun Pataleta Jun Pataleta
            Andrew Lyons Andrew Lyons
            Adrian Greeve Adrian Greeve
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

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