Sitecore Experience editor error /ribbon.aspx siteName
If you see this error when you open a page in experience editor, then this is the post you should look for.
Below is the screenshot of how the error looks from experience editor. The ribbon will completely error out and does not load.
If you check the network tab on the chrome browser developer tools, you would see the below request would show a 500 server error. If you preview the request response, then you would see the detailed error as below.
The solution for this error would be to check the following setting.
The setting value would be "Website" by default. If you are patching in your custom config files, make sure you are giving the name which is a valid site as per your SiteDefinition.config file.
Hope it helps. Let me know your thoughts.