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

Can not reset profile for all users (+123.000)

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-54968-master

      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

              Assignee:
              marina Marina Glancy
              Reporter:
              caiado Ricardo Caiado
              Peer reviewer:
              Jun Pataleta
              Integrator:
              Andrew Nicols
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/16