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
    1 week ago
    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
    1 week ago
    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 705 posts 1436 karma points MVP 4x admin c-trib
    1 week ago
    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

Please Sign in or register to post replies

Write your reply to:

Draft