Post Migration – This page is not using a valid page layout

Collaboration & Communications

In case of publishing sites, when you export and import sites, the pages will throw “This page is not using a valid page layout” error.
This is due to the fact that PublishingPageLayout is hardcoded within the page itself and must be updated on the migrated site. If you want to investigate further, download the page and check for the value.

In my case, I was restoring a site collection (http://sharepoint/sites/ASITE/) as a subsite (http://sharepoint/ASITE/)using powershell (syntax below for example).

Export-SPWeb -Identity http://sharepoint/sites/ASITE/ -Path C:TempASITE.01.bak -IncludeUserSecurity -IncludeVersions All
Import-spweb -Identity http://sharepoint/ASITE/ -Path C:TempASITE.01.bak -IncludeUserSecurity -ActivateSolutions

The site http://sharepoint/sites/ASITE/ would work fine but this error would be at http://sharepoint/ASITE/

The PageLayout needs to be updated for all pages in the new site. There are many posts about doing this via powershell, and here is how mine looked like. Update the “WelcomeLinks” to suit your needs.

 $spWeb = Get-SPWeb…

View original post 52 more words

Advertisements
Posted in SharePoint 2007 | Leave a comment

Fixing: This page is not using a valid page layout. To correct the problem edit page settings and select a valid page layout error in SharePoint 2010

ShiPoint SharePoint Blog

I recently ran into the error below when I tried to access a Wiki Page after I migrated over a SharePoint 2010 Enterprise Wiki Site from one location to another.

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

This sometimes happens after a migration of SharePoint Publishing Site Pages because the page layout URL is “hardcoded” into the  aspx pages, and if you migrated from one location to another the possiblity of that page layout not exiting or is incorrectly listed in your page will throw this error.  SharePoint is not smart enough to update this.

If you were to download a copy of that page and open it up you would see that the URL for the PublishingPageLayout is “hardcoded” with the “old” or “non existing” page layout.  Look for the <tag>:

<mso:PublishingPageLayout msdt:dt=”string”>URL to Publishing Page Layout</mso:PublishingPageLayout>

View original post 248 more words

Posted in SharePoint 2007 | Leave a comment