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:
- look at the /sitecore/shell/client/Sitecore/ExperienceEditor/ExperienceEditor.js file, on line 510 you will see that decodeURIComponent is being called twice.
- Remove one decodeURIComponent . After that it will be likedata: decodeURIComponent(JSON.stringify(commandContext))

- A change is also required in the/sitecore/shell/client/Sitecore/ExperienceEditor/RibbonPageCode.js file on line 24.
- Add decodeURIComponent So like this:ribbonUrl: decodeURIComponent(this.PageEditBar.get(“url”)),

- Now clear browser cache or open the site in incognito mode and verify the issue.
- If still you are getting the same error then follow below steps to disable social connect.
- Go to content editor and change the database to “CORE”
- Navigate to /sitecore/content/Applications/WebEdit/Ribbons/WebEdit/Page Editor/Social and move the folder to somewhere else.
- Hide the /sitecore/content/Applications/Content Editor/Ribbons/Chunks/Social for content editor as well.
- Verify the issue in Incognito mode.
Hi,
I’ve tried as you said. Still it doesn’t work.
Posted in community as well. Still no one responded.
https://community.sitecore.net/developers/f/8/t/7889
Thanks
Hello Eknath,
As per your post on sitecore community, it seems like issue with your controller rendering . Have a look on the below link and try this.
https://stackoverflow.com/questions/26031639/the-controller-for-path-was-not-found-or-does-not-implement-icontroller-in-s
if still issue doesn’t get resolved then please let me know.
Thanks