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

On "Trying to restore user xxxx from backup file will cause conflict" error, allow site admin to modify "Allow admin conflict resolution" setting and continue



    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Affected Branches:


      A common problem encountered when restoring courses with user data from different sites is a conflict in the credentials of the "admin" user between the two sites. The error commonly presents as:

      "Trying to restore user admin from backup file will cause conflict"

      There is no obvious action to take on this page other than "cancel." The options to reassign the other role names are distracting, as generally there is nothing wrong with the current role assignments and the problem lies elsewhere.

      The workaround is provided here:


      This involves a change to the admin setting "Allow admin conflict resolution". However, if a restore has already been started, switching to another browser window and making this adjustment will not allow the restore to proceed. Clicking "cancel" to restart the restore process leaves unusable "restore in progress" courses on the site. (see MDL-30177).

      It would be more usable to allow the user (if they have appropriate permissions) to adjust the "Allow admin conflict resolution" setting and continue the restore. Alternatively, a user might be able to enable conflict resolution for this restore task only. At minimum, a more helpful error message should be provided, e.g.

      'Trying to restore user admin from backup file will cause conflict, because the account details differ between the source site where the backup was made and the current site. Change the account details so both sites match, or enable "Allow admin conflict resolution" in the site administration settings.'


          Issue Links



              • Assignee:
                emdalton1 Elizabeth Dalton
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: