Sorry something went wrong the file masterurl custom.master is not a valid master page

Sorry something went wrong the file masterurl custom.master is not a valid master page

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.
TECHNICAL DETAILS

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

Solution:
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”

Sorry something went wrong the file masterurl custom.master is not a valid master page
Sorry something went wrong the file masterurl custom.master is not a valid master page

Now here change custom.master to default.master in the MasterPageFile tag.

<%@ Page language=”C#” MasterPageFile=”~masterurl/default.master”

It should look like below:

Sorry something went wrong the file masterurl custom.master is not a valid master page
Sorry something went wrong the file masterurl custom.master is not a valid master page

Now Save and Publish the page and then refresh the page, the error should not come.



Hope this will be helpful.

Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →