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.
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"
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 Sorry something went wrong the file masterurl should not come.
You may like following SharePoint master page tutorials:
- Create a custom master page using Design Manager in SharePoint Online/2013/2016
- Convert an HTML page into a SharePoint master page using Design manager
- Site Title snippet in SharePoint 2013/2016/Online custom master page
- Only Content controls are allowed directly in a content page that contains Content controls SharePoint 2013 Page Layout
- Create a responsive mobile master page using SharePoint 2013 designer
- Creating a fixed width master page in SharePoint 2013
- Steps to create a master page using design manager in SharePoint 2013/2016/Online
- How to appear Developer Dashboard in the custom master page in SharePoint?
- Reference jQuery in SharePoint 2013/2010 master page or in Application Page
I hope this will be helpful to fix the error Sorry something went wrong the file masterurl SharePoint 2013 error which comes in SharePoint 2013/2016.
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 SPGuides.com
Download SharePoint Online Tutorial PDF FREE!
Get update on Webinars, video tutorials, training courses etc.