Copied to clipboard

Flag this post as spam?

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


  • David Buckell 3 posts 73 karma points
    Aug 12, 2019 @ 13:15
    David Buckell
    0

    IPublishedContent fields are null

    Hi, Have installed a clean 8.1.1 umbraco instance, set the ModelsMode to "", installed your package and published all items. On navigating to the site I get a null exception on (i believe) BlogListSection.cshtml when executing this line: var blogsNode = Model.Blog.Select(x => new Blog(x)).FirstOrDefault();

    Model.Blog is null. Other fields such as text were populated, but seemingly any fields trying to map to IPublishedContent are not working.

    Have I missed a step?

    thanks

  • David Buckell 3 posts 73 karma points
    Aug 12, 2019 @ 16:07
    David Buckell
    0

    ok so having attempted to install this into a 8.0.2 umbraco instance it's working straight out of the box. so i guess the answer to my question is it simply isn't supported with 8.1.1 yet?

  • Paul Sterling 715 posts 1510 karma points MVP 4x admin c-trib
    Aug 12, 2019 @ 23:13
    Paul Sterling
    0

    Hi David -

    Indeed, due to the way the Models in the starter kit are included - in the compiled assembly - they'll need to be rebuilt against 8.1+...or that part changed to a pure Models Builder approach.

    Here's the issue logged at the repository: https://github.com/mjbarlow/Umbraco-8-Bulma-Starter-Kit/issues/2

    You can use the method that Cheryl outlines in that thread to use the current source with 8.1+, but the "best" way will be to update the starter kit to use the standard Models Builder approach IMHO.

    -Paul

  • Matt Barlow 139 posts 588 karma points c-trib
    Oct 24, 2019 @ 16:11
    Matt Barlow
    100

    Thanks guys, the starter kit is now updated to Dll models mode, and now works with Umbraco v8.2.

Please Sign in or register to post replies

Write your reply to:

Draft