If you are trying to delete any page or masterpage form the masterpage-galleri and getting this error «This item cannot be deleted because it is still referenced by other pages». Here is the fix. Create a new folder in the masterpage library and using SPD or explorer view drag the file over to this folder. Now delete the folder, so this will also delete the page you are trying to delete.
Make sure you don’t have any site using this pagelayouts or masterpage.
This is a problem happed when you specially have upgraded from SharePoint 2007 to SharePoint 2010.
The problem is the page cannot be opened and we cannot change the layout. So here is solution.
Go to the site/page where the problem appear, in the link bar add this link /_layouts/viewlsts.asp after site link.
Click on site actions – site settings – Page layout and site templates – Make sure the page layout is here. Just in case everything fine here, click Ok.
Now let’s change the page layout:
- Go to Site Content and Structure
- Find the Pages library
- Find the Pages
- View Properties of the page
- Edit item
- Choose a valid page layout
The problem should be solved.