SharePoint 2003 site in 2010 –‘Error on page’ when trying to add web parts

SharePoint 2003 site in 2010 –‘Error on page’ when trying to add web parts

We recently came across this issue when migrating some SharePoint Portal Server 2003 sites to SharePoint 2010 for a client. The UI of the site had not been upgraded and was still showing the 2003 look and feel.

When attempting to add web parts to the page using the ‘Edit Shared Page’ menu an ‘Error on page’ error appeared. It seemed that it was looking for the Core.js file. Upon inspection the page had no reference to the Core.js file – this must have been knocked out during the upgrade.

Edit Shared Page

I edited the page in SharePoint Designer and added a ScriptLink tag in the <HEAD> section pointing at the Core.js file and hey presto the ‘Add web parts’ menu worked and the error was gone.

<SharePoint:ScriptLink language="javascript" name="core.js" defer="true" runat="server"/>

This MSDN forum post describes the issue – http://social.technet.microsoft.com/Forums/hu-HU/sharepoint2010customization/thread/542c2921-e86e-48eb-a334-6c27a09c0416.

Hope this helps someone Smile

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">