Experience Editor issue “An error occurred”

Issue Description:

Not able to save the changes in Experience Editor and always getting an issue “An error occurred”. It’s a JavaScript Bug in sitecore 8.1.

Below are the Steps to resolve the “An error occurred” issue in Experience Editor while saving the content:

  1. look at the /sitecore/shell/client/Sitecore/ExperienceEditor/ExperienceEditor.js file, on line 510 you will see that decodeURIComponent is being called twice.
  1. Remove one  decodeURIComponent . After that it will be likedata: decodeURIComponent(JSON.stringify(commandContext))                                                            issue1
  2. A change is also required in the/sitecore/shell/client/Sitecore/ExperienceEditor/RibbonPageCode.js file on line 24.
  3. Add decodeURIComponent So like this:ribbonUrl: decodeURIComponent(this.PageEditBar.get(“url”)),                                                                  issue2
  4. Now clear browser cache or open the site in incognito mode and verify the issue.
  5. If still you are getting the same error then follow below steps to disable social connect.
    1. Go to content editor and change the database to “CORE”
    2. Navigate to /sitecore/content/Applications/WebEdit/Ribbons/WebEdit/Page Editor/Social and move the folder to somewhere else.
    3. Hide the  /sitecore/content/Applications/Content Editor/Ribbons/Chunks/Social for content editor as well.
  6. Verify the issue in Incognito mode.
Filed under Sitecore Bug
Ravindra Giri
Ravindra Giri

Sr. Sitecore Technical Architect

2 comments

Leave a Reply

Discover more from Sitecore Nuke

Subscribe now to keep reading and get access to the full archive.

Continue reading