U4-7922 - Preview is not working

Created by Rasmus Pedersen 09 Feb 2016, 07:18:07 Updated by Marcin Zajkowski 18 Jan 2017, 15:45:26

Is duplicated by: U4-7908

Relates to: U4-8004

Relates to: U4-7908

After upgrading to 7.3.7 preview is no longer working, it's always showing the published version and a 404 for non published documents.

To reproduce:

  • install 7.3.7 with the Fanø starter kit
  • create a new document
  • save but do not publish
  • click preview Now you get a 404

If you publish the page and make changes you see the published version in preview but not your changes.

3 Attachments

Download umbraco737-patch2.zip

Download umbraco.dll


Jim Gettrup 09 Feb 2016, 09:52:02

I'm also seeing this problem if I install 7.3.7 with the Fanø starter kit, unpublish an existing page (say "Contact"), and then click Preview - I get 404 page not found.

This is also affecting the site I'm currently working on.

Jim Gettrup 09 Feb 2016, 09:58:39

By the way, the fresh install has disableFindContentByIdPath="false", so that is not the problem.

Shannon Deminick 09 Feb 2016, 09:58:51

Hi, Please find an attached patch for this issue, you can unzip and just copy in the DLL to your /bin. This fix will be definitely be part of 7.4.0, we may also end up creating a 7.3.8 version.

Jim Gettrup 09 Feb 2016, 11:56:51

Thanks Shannon, that's fixed it, although I had some trouble convincing my Visual Studio project to use the new DLL (Umbraco was added using NuGet). If anyone else is having trouble, I had to replace the DLL in \packages\UmbracoCms.Core.7.3.7\lib, then remove and add back the reference in the project, and restart Visual Studio.

Sebastiaan Janssen 09 Feb 2016, 12:07:37

@jim@gettrup.com Note that this will not work with oackage restore, nor when you deploy through MSDeploy for example. For now it would be best to copy the new dll to a "lib" folder and do a Post-Build copy of that file into your bin folder so that it's always overwritten with the new version.

Jim Gettrup 09 Feb 2016, 14:06:01

Thanks again Shannon, that's a much better way to do it.

Tor-Erik Klausen 09 Feb 2016, 19:48:55

Thanks! There's an easier solution than putting the dll in a "lib" folder + Post-Build copy:

  1. Create a folder named "_bin_deployableAssemblies" in the project and put the DLL there.
  2. Add the dll to the project and set the property "Build Action" to "None" (defaults to "Content").

Visual Studio should now copy the file to the bin folder automatically and MSDeploy works. Just don't forget to remove the file when updating Umbraco!

Kevin Giszewski 16 Feb 2016, 12:53:50

+1 for a 7.3.8 as 7.4 is not an option for us at the moment :)

Kevin Giszewski 16 Feb 2016, 12:54:47

Any chance that preview can be added to regression testing?

Shannon Deminick 16 Feb 2016, 13:07:04


Kevin Giszewski 16 Feb 2016, 13:12:01

@Shandem The linked issue is private or something.

Shannon Deminick 16 Feb 2016, 13:16:09

oh sorry, this is the list of backports:

Shannon Deminick 16 Feb 2016, 13:16:13

Backporting tasks to review:

http://issues.umbraco.org/issue/U4-8002 http://issues.umbraco.org/issue/U4-8003 http://issues.umbraco.org/issue/U4-8004

Kevin Giszewski 16 Feb 2016, 14:43:39

@Shandem Looks like 7.4 is also an issue with JSON blobs (guessing). Any idea if the Grid is having issues? https://our.umbraco.org/projects/backoffice-extensions/archetype/sound-off/75111-preview-doesnt-work#comment-240336

Shannon Deminick 16 Feb 2016, 15:00:58

Not sure mate, if you can reproduce the issue please report on a new ticket with details

Rameshkumar 28 Apr 2016, 15:49:32

Hi Shanon,

This is Ram. I am having the same preview issue for the umbraco version 7.1.9 could you please apply the update on this version and attach the updated version 7.1.9. It will be very helpful for us. Thanks.

Rameshkumar 28 Apr 2016, 15:50:57

I have attached 7.1.9 version

Shannon Deminick 28 Apr 2016, 16:25:34

We suggest that you upgrade to the latest version of Umbraco - it is a painless upgrade and there are several hundreds of bugs fixed from your version to 7.4.3

Rameshkumar 28 Apr 2016, 16:58:14

Thanks for your quick response. Unfortunately as this is new update and we are having merely 5 large applications, currently little bit difficult. It will be so helpful if you are giving 7.1.9 with the updated version.

Rameshkumar 28 Apr 2016, 17:20:40

We were installed longtime back and everything was working fine. Suddenly we are getting the preview issue that we were not applied any version upgrade.

Shannon Deminick 29 Apr 2016, 07:59:29

@Rameshkumar.Ramaiyan@gmail.com then you need to open a new issue and explain the problem you are having. You issues is different than what is listed here. The issue listed here is specific to 7.3.7 - 7.4.0. If 'suddenly' something stops working then you'll need to determine why - since it was working before. Best thing to do would be to ask on http://our.umbraco.org and explain the exact problem with steps to reproduce. Also note that if we have fixed issues in later versions we will always request that you upgrade and always test with the latest version of Umbraco.

Rameshkumar 29 Apr 2016, 12:42:50

Thanks Shannon

Eric Schrepel 05 Oct 2016, 17:14:12

I'm still getting this in 7.5.3. The URL is a little confusing, so I'm wondering if something else is going on: www.oursitename.org/umbraco/preview/?id=16503#?id=16503 which results in a 404 error. I've disabled any rewrite rules we have, thinking maybe that was causing the issue, but still getting 404s.

Tom Glenn 19 Oct 2016, 09:45:50

This issue still exists as of Umbraco 7.5.2. Please see http://issues.umbraco.org/issue/U4-9081

Steve Farron 19 Oct 2016, 14:03:21

We are seeing this issue as well in 7.5.0 and 7.5.3. We get a 404 on saved (unpublished) nodes when attempting to preview. Also, not sure if related (seems to correlate), but we're finding that published nodes with new saved content are NOT showing the new content on preview.

Shannon Deminick 19 Oct 2016, 14:15:42

@sfarron please respond on the new ticket instead of this closed one: http://issues.umbraco.org/issue/U4-9081

Sebastiaan Janssen 19 Oct 2016, 15:14:10

Note that I just tested all this on 7.5.3, see U4-9081 - if you can reproduce on a clean 7.5.3 we're happy to have a look. As of yet, I have no idea how to reproduce though :(

Marcin Zajkowski 18 Jan 2017, 14:21:14

@Shandem is it possible to share what have been changed inside your pre-compiled DLL listed above? One of our community members raised this issue with 7.4.2 on the trainings and as they are forced to use this version (cannot update now) and can't use this pre-compiled DLL they will be glad for having a code which needs to be included / changed there to make their own custom build. Can you help? :)

Sebastiaan Janssen 18 Jan 2017, 14:37:39

@m.zajkowski The fix was here: http://issues.umbraco.org/issue/U4-8004 But if they're on 7.4.2 they already have this code in their version.

Tom Glenn 18 Jan 2017, 14:59:56

@sebastiaan This bug isn't fixed. Several people (myself included) have posted reproduction steps over at http://issues.umbraco.org/issue/U4-9081

I believe the ticket is still actually assigned to you and is open.

Mathieu St-Gelais 18 Jan 2017, 15:01:52

We have several projects here in 7.4+ and 7.5+ that have this exact problem.

Sebastiaan Janssen 18 Jan 2017, 15:27:46

I know this is all semantics but this exact bug was indeed fixed, the issue in U4-9081 seems to be because of custom Owin providers. :-)

If you can repro the issue without custom Owin setups then please provide details in U4-9081.

Marcin Zajkowski 18 Jan 2017, 15:45:26

Thanks @sebastiaan. Pushed it forward to the interested people :)

Priority: Major

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.3.7

Due in version: 7.4.0

Sprint: Sprint 8

Story Points: