0

When I try to show the preview mode in my Experience Editor I get the Message

"The layout for the requested document was not found"

enter image description here

It was already working and I don't know what I have done that this does not work any more.

The Final and shared Layout look the same

enter image description here

The default Layout looks good too.

enter image description here

I can't find any problems and don't know what to do to solve this issue

The Strange behavior is, that when I publish the page it works I get no error but the preview mode is not working

  • Edit mode of Experience Editor works correctly, right? What is the difference in the url between Edit and Preview modes? – Marek Musielak Feb 27 '19 at 8:47
  • Go to Navigate - > Links and confirm that default layout is referred by that particular item. Confirm that Default.cshtml is there in your website root folder. – Siddharth Feb 27 '19 at 8:50
  • @MarekMusielak yes the edit mode works fine. I can't see the preview Mode url because it show directly the layout not found page the current edit URL is: sitecore.local/?sc_mode=edit and when I change the edit into preview I see the error page – squadwuschel Feb 27 '19 at 9:20
  • @siddharth Sorry I don't know what you mean with "Go to Navigate -> Links ..." Where can I find this? And yes the default.cshtml lies in on the website root in the corresponding folder – squadwuschel Feb 27 '19 at 9:21
  • Open developer tools in Chrome (or whichever browser you use), and in the network tab check Preserve Logs. See what was the url that was redirected to LNF page – Marek Musielak Feb 27 '19 at 9:22
0

I've got it working again. But I am not really shure how I solved this problem.

I've Reseted the Presentation Details für every shared and final Layout of the page and then I created a new Version for en and de-de. After that it works again.

| improve this answer | |
  • Did it previously have both en and de-de versions? If so, did they both have layout defined (or do you have language fallback configured)? – Dan Sinclair Feb 28 '19 at 20:12
  • @DanSinclair yes it should have a en and de-de versions but I am not shure. And I am a bit new to sitecore development I don't know how to configute language fallback – squadwuschel Feb 28 '19 at 21:05
  • I'm not sure what version of Sitecore you're using, but there is good documentation for configuring language fallback: doc.sitecore.com/developers/90/sitecore-experience-management/… – Dan Sinclair Feb 28 '19 at 21:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.