question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview mode unable to retrieve other pages from cache

See original GitHub issue

Bug summary

Since Umbraco 7.15.0 we are unable to use the preview function in at least 3 of our websites. While loading the previewed page I try to retrieve other pages using content.AncestorOrSelf() or content.Siblings() and I receive null or unexpected results (see screenshots).

Specifics

  • 7.15.0 up to 7.15.3
  • The bug disappears when Umbraco.Preview.Mode is set to Legacy

RenderModel

Siblings

This is interesting, only previously previewed pages are showing up in the list but the page with ID 1050 should not be a sibling.

db-cmsPreviewXml

Expected result

A webpage that loads in successfully without exceptions.

Actual result

NullReferenceException in the code that runs fine outside the preview mode.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
dawoecommented, Aug 17, 2020

I was able to reproduce this as well. I created a PR that fixes this behavior.

0reactions
nul800sebastiaancommented, Sep 9, 2020

Haha! Thank you, yes, meant to say fixed in https://github.com/umbraco/Umbraco-CMS/pull/8636 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the 'Cached Preview' Error in After Effects
In this article, we're going to talk about how to fix this 'Cached Preview' error in After Effects. If you follow all of...
Read more >
Error on dynamic page unable to Test Cache
Page caching seems not working for both dynamic and static pages. ... in incognito mode 'cause sometimes Cloudflare bypass the cache for cURL...
Read more >
How to Fix the 'Cached Preview' Error in After Effects - YouTube
Your browser can't play this video. Learn more.
Read more >
Chrome keeps loading a old cache of my website
I tried to clean the browser cache, use igcognito mode, and clean DNS cache. The old cached page is still being loaded. This...
Read more >
WordPress Changes Not Showing? Here's How to Fix the ...
Having issues with WordPress changes not showing on your site? It's usually problems with caching - we'll show you how to fix the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found