SharePoint 2010: This page is not using a valid page layout

sharepoint

SharePoint 2010
I have an enterprise wiki site, that I exported and imported from one farm to another. However, I exported it form a site collection root site, to a sub site in another site collection. When I browse to any page that was created with the Enterprise wiki template, I get the error:

This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout."

The page layout is showing as Basic Page. And works ok for new pages created. How can I fix the page layout, that is in the existing pages?

Any thoughts?

Best Answer

Turns out it's a bug. If you import a publishing site, the pages do not have the correct link to the page layout. No way to fix this through the UI. I had to use PowerShell.

Related Topic