Share via


Trying to view a SharePoint .aspx page generates the error "This page is not using a valid page layout"

Symptoms

Users attempting to view or render an .aspx format page receive the following error:

"This page is not using a valid page layout"

Cause

The .aspx page is using an invalid page layout, or the current layout is corrupt.

Resolution

There are two potential resolutions.

If the page was working at some point in time, use Version History to revert to the last known working version:

  1. Go to Site Actions > View All Site Content.
  2. Select Pages.
  3. Select the dropdown menu next to the .aspx page in question.
  4. Select Version History.
  5. Preview older versions to see if the issue was recently introduced. If possible, identify a last-known working version, and suggest the customer restore that version.

Alternatively, try to manually fix the page layout.

You may find in Site Content and Structure (/_layouts/sitemanager.aspx) that the Page Layout is listed by path, as opposed to by name. For example, the layout is listed as "/_catalogs/masterpage/WelcomeLinks.aspx" instead of "Welcome page with summary links".

First, make sure that the template is enabled in /_layouts/AreaTemplateSettings.aspx. Typically, Page Layouts is set to "Pages in this site can use any layout".

Then, go to View All Site Content (/_layouts/viewlsts.aspx) > Pages, select the dropdown on the affected page, and then select Edit page properties. Select a valid layout. You should be able to render the page.

Sometimes, you may need to force the page layout to reset by changing it to something else, then back to the original layout in both viewlsts.aspx and sitemanager.aspx:

  1. Go to /_layouts/viewlsts.aspx > Pages > Edit page properties of the affected page and change the layout to something else.
  2. Go to /_layouts/sitemanager.aspx > Pages > Edit page settings of the affected page and change the layout to the same as Step 1.
  3. Go back to viewlsts.aspx and change the layout to the original.
  4. Go back to sitemanager.aspx and change the layout back to the original.
  5. Confirm the layout in sitemanager.aspx now displays by Name, not path.
  6. Confirm the page no longer throws errors.

More information

Still need help? Go to SharePoint Community.