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

Can not reset profile for all users (+123.000)

    XMLWordPrintable

Details

    • 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.

    Description

      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()

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              caiado Ricardo Caiado
              Jun Pataleta Jun Pataleta
              Andrew Lyons Andrew Lyons
              Adrian Greeve Adrian Greeve
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/16