{"id":145,"date":"2008-10-27T23:19:11","date_gmt":"2008-10-28T05:19:11","guid":{"rendered":"http:\/\/idubbs.com\/blog\/?p=145"},"modified":"2008-10-27T23:19:11","modified_gmt":"2008-10-28T05:19:11","slug":"troubleshooting-content-editor-web-part-gotcha","status":"publish","type":"post","link":"https:\/\/www.idubbs.com\/blog\/2008\/troubleshooting-content-editor-web-part-gotcha\/","title":{"rendered":"Troubleshooting &#8211; Content Editor Web Part gotcha"},"content":{"rendered":"<p>(Wow, this is my 100th post&#8230; )<\/p>\n<p>I ran across what I considered an obscure issue the other day and wasn&#8217;t able to find much for solutions &#8211; so here are a few details in the hopes that they might be helpful to someone else down the road.\u00a0<\/p>\n<p>The short answer:\u00a0 Are you\u00a0having weird issues with\u00a0a SharePoint page?\u00a0\u00a0Are you using Content Editor Web Parts?\u00a0 Check them to see if you&#8217;ve accidentally introduced incomplete or error-prone HTML.\u00a0 \u00a0<\/p>\n<p>The longer answer:<br \/>\nI have a client that was\u00a0attempting to edit a SharePoint site that had the publishing features enabled.\u00a0 The user had\u00a0full control and had checked out the page.\u00a0 They had a number of lists on the site and a bunch of web parts in several zones on the page.\u00a0 Two different issues were found.\u00a0<\/p>\n<p><span style=\"text-decoration: underline;\">Issue #1:<\/span><br \/>\nWhen editing the page, even if only for a few seconds (like to move a web part) &#8211; then\u00a0saving or publishing &#8211; \u00a0the page would time out with the following error:<\/p>\n<p>&#8220;An unexpected error has occurred&#8221;<\/p>\n<p>When returning to the site it says the following:<\/p>\n<p>&#8220;Your current editing session has expired.\u00a0 Before editing or saving any content you must refresh this page.&#8221;<\/p>\n<p>When\u00a0refreshing the page\u00a0all changes are lost.\u00a0\u00a0<\/p>\n<p><span style=\"text-decoration: underline;\">Issue #2:<\/span><br \/>\nAlso when in edit mode, when clicking on the &#8216;edit&#8217;\u00a0dropdown on one of the web parts, nothing would happen.\u00a0 The\u00a0edit dropdown would work just fine on the other web parts.\u00a0 (this should have been\u00a0my first clue to the answer)\u00a0\u00a0\u00a0<\/p>\n<p><span style=\"text-decoration: underline;\">Notes:<\/span><br \/>\nBoth issues are\u00a0isolated to this page and this site only.\u00a0<br \/>\nNo issues were\u00a0seen in the Events logs or the SharePoint logs.\u00a0 \u00a0<\/p>\n<p><span style=\"text-decoration: underline;\">Answer:<\/span><br \/>\nThere were also a few Content Editor Web Parts on the page.\u00a0 They both appeared to be working just fine.\u00a0 When looking at the source for each of them, they included tags that were not necessary.\u00a0 Tags that likely came from cutting and pasting from other applications.\u00a0 Once these tags were removed, the normal functionality was restored.\u00a0 The HTML from one or both of the Content Editor Web Parts was interfering with the HTML and code on other parts of the page.\u00a0 What is normally considered a simple web part caused a not-so-simple issue from the user&#8217;s perspective.\u00a0<\/p>\n<p>This is the <a href=\"http:\/\/groups.google.com.au\/group\/microsoft.public.sharepoint.portalserver\/msg\/8aedb7b7a402dd88\" target=\"_blank\">post<\/a> that finally tipped me off.<\/p>\n<p>Carry on!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Wow, this is my 100th post&#8230; ) I ran across what I considered an obscure issue the other day and wasn&#8217;t able to find much for solutions &#8211; so here [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[11,31],"tags":[51,92],"class_list":["post-145","post","type-post","status-publish","format-standard","hentry","category-sharepoint","category-troubleshooting","tag-content-editor","tag-troubleshooting"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgWQ1-2l","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/posts\/145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/comments?post=145"}],"version-history":[{"count":0,"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/posts\/145\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/media?parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/categories?post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.idubbs.com\/blog\/wp-json\/wp\/v2\/tags?post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}