I tried making an edit to the master page HTML file and I guess I made a mistake. I uploaded the HTML file to the master page gallery and now I can't access any part of the SharePoint site. Whenever I try to load any part of the site it says

"An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery or directly typing its URL."

I can't use PowerShell because we aren't allowed to run scripts on these systems. Is there any way to change the master page to a different one so that I can upload a non-broken version of my master page?

  • If you do not apply your customer page to the system pages then navigate to the your ChangeMasterPage url siteurl/_layouts/15/ChangeSiteMasterPage.aspx and change – Venkat Konjeti Jun 12 '17 at 17:02
  • You can also change the master page from the SharePoint Designer. – Venkat Konjeti Jun 12 '17 at 17:03
  • I wasn't using Sharepoint designer for the website. Can I add the website to sharepoint designer now? – Mdomin45 Jun 12 '17 at 17:07
  • See my answer and comments below. – Venkat Konjeti Jun 12 '17 at 17:09

I fixed the problem in the simplest way I could:

I just mapped a network drive to {mySite}/_catalogs/masterpage and uploaded a working HTML file to replace the corrupted master page.

  • If you solved the problem stated in your original question, you should mark this answer as accepted answer to help future visitors. – Mohamed El-Qassas MVP Jun 12 '17 at 20:02
  • I would if I could. It doesn't let me accept my own answers until 2 days after I post them. – Mdomin45 Jun 12 '17 at 20:23

If you do not apply your customer page to the system pages then navigate to your ChangeMasterPage URL siteurl/_layouts/15/ChangeSiteMasterPage.aspx and change.


You can open the site from the SharePoint designer.

  • Go to All Files -> _catalogs -> masterpage.
  • Select the working master page like default oslo or seattle.
  • Right click the .master file and select "Set as a custom master page".
  • You can install the SharePoint designer onto your local machine and open from that tool – Venkat Konjeti Jun 12 '17 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.