Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Glenn 4 posts 74 karma points
    Oct 18, 2016 @ 14:08
    Tom Glenn
    0

    Cannot Preview Unpublished Content

    Hi everyone,

    I'm running into a very strange issue when trying to preview content. Essentially, I cannot preview content until that content has been published.

    Until it is published, trying to preview results in the following:

    Page not found

    No umbraco document matches the url '/1333.aspx'.

    This page can be replaced with a custom 404. Check the documentation for "custom 404".

    This page is intentionally left ugly ;-)

    My initial thoughts were that my document type was too complex and was causing some issues with the Preview functionality. So I created a completely blank Document Type, created a new content node of that Document Type, saved it and tried to preview it. Same issue as above. Only after Publishing could I actually preview it in the assigned template.

    Has anybody else experienced this? I'm running Umbraco v7.4.2

    Thanks

  • Simon Dingley 1474 posts 3451 karma points c-trib
    Oct 18, 2016 @ 15:06
    Simon Dingley
    0

    I didn't know this was still an issue but used to have this historically that you were unable to preview a page unless it had been published at least once first. If you publish it, make changes and then preview I'm assuming it works as expected?

    Simon

  • Tom Glenn 4 posts 74 karma points
    Oct 18, 2016 @ 15:31
    Tom Glenn
    0

    Hi Simon. Interestingly no. I only see updates in the preview if I make changes and republish. It's like the preview is somehow only displaying the latest published version - which to me seems to defeat the purpose of a preview?

  • Simon Dingley 1474 posts 3451 karma points c-trib
    Oct 18, 2016 @ 15:39
    Simon Dingley
    0

    Have you checked your log file to see if there is anything of relevance in there?

    Do you have anything in your ~/App_Data/preview/ directory?

  • Tom Glenn 4 posts 74 karma points
    Oct 19, 2016 @ 08:13
    Tom Glenn
    0

    Hi Simon,

    Checked the logs and tried clearing the ~/App_Data/preview folder to no avail.

    I've also managed to successfully replicate this "bug" on a completely different Umbraco site.

    Recreation steps are:

    • Create a brand new doc type
    • Create a content node of said doc type
    • Try to preview it - 404
    • Publish it then preview it again - works
    • Unpublish it and preview again - 404
  • Simon Dingley 1474 posts 3451 karma points c-trib
    Oct 19, 2016 @ 08:18
    Simon Dingley
    0

    I recommend you add it to the issue tracker if there isn't already a record of it. This does sound remarkably like the issue I used to see in that there had to be a published version of the page first in order to be able preview it.

  • Tom Glenn 4 posts 74 karma points
    Oct 19, 2016 @ 09:42
    Tom Glenn
    0

    Thanks, I've raised an issue here: http://issues.umbraco.org/issue/U4-9081

  • Simon Dingley 1474 posts 3451 karma points c-trib
    Oct 19, 2016 @ 14:13
    Simon Dingley
    0

    Hi Tom,

    To satisfy my own curiosity I just did a fresh install of v7.5.3 via the following steps (below) and did not see this issue I'm afraid but have seen it in older versions.

    • New ASP.Net MVC Empty Project
    • install-package UmbracoCms
    • Debug > Start debugging
    • Run through installer wizard (no starter kit)
    • Create doctype "Homepage"
    • Create tab "Content" add new property "Page Title" as Textstring datatype and "Allow as root"
    • Create new Homepage content item called "Home" with Page Title property "Home"
    • CTRL + S to save but not publish page
    • Click preview
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies