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

This SharePoint 2013 tutorial explains, how to fix Sorry something went wrong the file masterurl custom.master is not a valid master page error which comes while opening a SharePoint 2013 site.

Recently when I opened a SharePoint 2013 migrated site, on one page it gave me an error which says: Sorry something went wrong the file masterurl SharePoint 2013.

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

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

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

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

Now Save and Publish the page and then refresh the page, the error Sorry something went wrong the file masterurl should not come.

You may like following SharePoint master page tutorials:

Hope this will be helpful to fix error Sorry something went wrong the file masterurl SharePoint 2013 error which comes in SharePoint 2013/2016.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>