CODEDIGEST
Home » FAQs
Search
 

Technologies
 

How to fix Publishing Pages manually when we the error: "Unexpected error has occurred" when you edit a page, after deploying a SharePoint site to another server or another environment?
Submitted By Forest Marcia
On 12/7/2009 8:18:32 AM
Tags: Interview Questions,SharePoint  

How to fix Publishing Pages manually

By Armine Vardanyan, SharePoint Implementer, KWizCom Professional Services

 http://www.kwizcom.com/

 

 

Have you ever seen the error: "Unexpected error has occurred" when you edit a page, after deploying a SharePoint site to another server or another environment?

It is a very common occurrence...

Problem:
When you move a publishing page, it contains a link to a page layout with an absolute address:

<mso:PublishingPageLayout msdt:dt="string">http://incorrect_servername/_catalogs/masterpage/PageLayout.aspx, Article page with image on left</mso:PublishingPageLayout>

Solution:

Open the Pages Library where your page is saved.

  1. Click "Actions", and then click "Open with Windows Explorer".
    Or
    Click "File" -->
      "Open.."-->  Paste the link of the Pages Folder and check the checkbox "Open as Web Folder"
  2. Copy your page to the desktop.
  3. Open it in notepad.
  4. Search for the <mso:PublishingPageLayout> tag and change the "incorrect_servername"(see above) to your site name.
  5. Save.
  6. Copy it back to your Pages library.

 

Now you will be able to fix your page without receiving the error notice. Hope this helped!

Recent FAQs
  • View All FAQs..