Copied to clipboard

Flag this post as spam?

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


  • Rotem Orbach 63 posts 345 karma points
    Dec 12, 2018 @ 14:33
    Rotem Orbach
    0

    Object reference not set to an instance of an object.

    Hi, I've upgraded from Umbraco 7.3 to 7.12.4.

    Everything worked perfectly, BUT: from some reason the site itself stopped working. I'm getting 'Object reference not set to an instance of an object.' on

    string testifierName = page.GetPropertyValue<string>("testifierName");
    

    and basically on every line in my code that has the "GetPropertyValue". When debugging, I can see that instead of returning the value, the "GetPropertyValue" returns the type:

    System.Collections.Generic.List`1[Umbraco.Core.Models.IPublishedContent]
    

    I'm sure it's web.config related, but I cannot seem to find the culprit.

    Please help, Thanks, Rotem

  • Rotem Orbach 63 posts 345 karma points
    Dec 12, 2018 @ 15:02
    Rotem Orbach
    0

    Update: it only happens on macro-partials

  • Alex Skrypnyk 5064 posts 18416 karma points MVP 2x admin c-trib
    Dec 12, 2018 @ 15:19
    Alex Skrypnyk
    0

    Hi Rotem

    What property editor do you use in "testifierName" property?

    Alex

  • Rotem Orbach 63 posts 345 karma points
    Dec 12, 2018 @ 15:20
    Rotem Orbach
    0

    Hi Alex, Not sure I understood. What do u mean by that? can you please elaborate?

  • Rotem Orbach 63 posts 345 karma points
    Dec 12, 2018 @ 15:25
    Rotem Orbach
    101

    Problem solved. What I did was to set EnablePropertyValueConverters to false:

    <EnablePropertyValueConverters>false</EnablePropertyValueConverter
    

    it has to do with Property Value Converters:

    https://our.umbraco.com/documentation/getting-started/setup/upgrading/version-specific#property-value-converters

Please Sign in or register to post replies

Write your reply to:

Draft