Copied to clipboard

Flag this post as spam?

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


  • Tom Chance 20 posts 101 karma points
    Jul 04, 2018 @ 08:42
    Tom Chance
    0

    Model.Content.AncestorOrSelf(1) apparently null on a moved node.

    Good Morning,

    I recently set up a solution using V7.10.4, uCommerce and the uCommerce starterkit (Avenue Clothing).

    By default the starterkit sets itself up as a root node store of which I moved to underneath my original root node called "Website".

    Original

    -Website

    -Ucommerce Starterkit Pages

    Now

    -Website -> Ucommerce Starterkit Pages

    Since moving the Homepage underneath the Website settings node, Model.Content.AncestorOrSelf(1) throws up an object reference not set to an instance of an object on the inherited template.

    Any ideas why this may be happening? (As a reference, also posted on uCommerces eureka forum and the post can be found here: https://eureka.ucommerce.net/#!/question/2557/ModelContentAncestorOrSelf-method-used-on-template-Object-reference-not-set-to-an-instance-of-an-object)

    Edit: Ive also noted, Other Model based attributes are appearing as null such as Model.Content.Name

Please Sign in or register to post replies

Write your reply to:

Draft