SharePoint Intranet Error: ‘style.display’ is null or not an object (CEWP)

This error was received when attempting to edit a content editor web part (CEWP):
 
error …
Line: 2135
Char: 4
Error: ‘style.display’ is null or not an object
 
When he moved the web part to a lower part of the page (for example) he received another pop-up error:
Error: 84
Unspecified error
 
When he attempted to move the web part to another zone I receive the generic SharePoint error page saying: “”An unexpected error has occurred.”” … and it will not move the web part to another zone.
 
This error occurs when more than one web parts gets referenced with the same id. 
 
According to blogs out on the Internet, this usually happens when content is copied into a content editor web part from either another web part or a Microsoft Office application. 
 
Naturally users need to be encouraged to remove inline styles when copying content.
 
To fix the problem, I had to delete the faulty web part and re-create it. 
 
Without being able to get in through the edit menu, I broke into the page and deleted the faulty web part, by adding ‘?contents=1’ to the end of my url.

 
This is a little trick that forces SharePoint to redirect you to the spcontent page.
 
From here you can use this page to close Web Parts on your page, restore defaults to Web Parts, or delete Web Parts from your page.

Advertisements

One thought on “SharePoint Intranet Error: ‘style.display’ is null or not an object (CEWP)

  1. I had exactly the same problem, and struggled several hours to find a way around it. Your trick fixed the problem. Thanks a lot for sharing.

    There are other ways to do this, but I honestly don’t want to be forced to buy additional software simply to make a few webpart changes on a simple page. Nor do I have admin access to the server.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s