Copied to clipboard

Flag this post as spam?

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


  • Solomon Shaffer 12 posts 75 karma points
    Dec 14, 2015 @ 23:23
    Solomon Shaffer
    0

    Error when previewing a page

    I have a news section with a bunch of child news items datatypes. When I try to Preview the news item, I consistently get an "Object reference not set to an instance of an object". Obviously does not tell me too much, but I have to practically strip the template of an code to get the page to render.

    Getting errors on lines like:

    @Umbraco.Field("HeaderTitle", recursive: true)

    IPublishedContent newsItem = null;

    foreach (var news in allNewsItems) { ... }

    I get this on random pages as well.

    Seems like the page loses all context of itself when previewing (or using the page id such as http://mywebsite.com/1533). Anyone ever run into these issues before. As far

  • Bas Fluijt 2 posts 22 karma points
    Dec 23, 2015 @ 10:52
    Bas Fluijt
    0

    I'm having the exact same problem in my current solution running Umbraco 7.3.4. There were preview related bugs fixed in the latest upgrades, but I mentioned someone saying that all fields were lower cased in preview mode.

    Hope someone bumped into a solution. I'm currently looking for a solution. If I find one I'll be sharing it here as well.

    The biggest issue is that when you go out of the preview mode. The whole website seems to be effected. Only a IIS recycle seems to fix it.

    Please let me know when you find the answer to this issue.

  • Bas Fluijt 2 posts 22 karma points
    Feb 16, 2016 @ 18:14
    Bas Fluijt
    0

    Hi Solomon,

    Dit you ever managed to fix the issue stated above?

    Thanks for sharing!

    Bas

  • Solomon Shaffer 12 posts 75 karma points
    Feb 16, 2016 @ 18:57
    Solomon Shaffer
    0

    No. Not yet. But I have not been trying recently either.

  • 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