In this post we will discuss how we can resolve the master page issue which comes while opening a SharePoint 2013 site. Recently when I opened a SharePoint 2013 migrated site, in one page it gave me an error which says:
Sorry, something went wrong
The file ‘~masterurl/custom.master’ is not a valid master page.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 24db529d-8ef0-a03f-6251-c229a22d7428
Date and Time: 1/7/2016 1:57:58 AM
You can also read:
– View ULS Logs using SharePoint LogViewer in SharePoint 2013
– How to create managed path for a web application using PowerShell?
– custom welcome menu SharePoint
Open your SharePoint 2013 page using SharePoint 2013 designer. Then you will be able to see a tag like below:
<%@ Page language=”C#” MasterPageFile=”~masterurl/custom.master”
Now here change custom.master to default.master in the MasterPageFile tag.
<%@ Page language=”C#” MasterPageFile=”~masterurl/default.master”
It should look like below:
Now Save and Publish the page and then refresh the page, the error should not come.
Hope this will be helpful.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: