4

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?

4
  • 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 Commented Jun 12, 2017 at 17:02
  • You can also change the master page from the SharePoint Designer. Commented Jun 12, 2017 at 17:03
  • I wasn't using Sharepoint designer for the website. Can I add the website to sharepoint designer now?
    – Mdomin45
    Commented Jun 12, 2017 at 17:07
  • See my answer and comments below. Commented Jun 12, 2017 at 17:09

2 Answers 2

3

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.

2
  • If you solved the problem stated in your original question, you should mark this answer as accepted answer to help future visitors. Commented Jun 12, 2017 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
    Commented Jun 12, 2017 at 20:23
2

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.

or

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".
1
  • You can install the SharePoint designer onto your local machine and open from that tool Commented Jun 12, 2017 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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