Copied to clipboard

Flag this post as spam?

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


  • Amir Khan 1289 posts 2746 karma points
    Jul 05, 2016 @ 19:39
    Amir Khan
    0

    All cultures but english throwing error

    I'm getting an error with any page when accessing a URL with a culture set to anything but English.

    So I have to domains / cultures set up in the cultures and hostnames and if I go to mysite.com/en it works fine, but if I go to mysite.com/es it breaks with the following error:

    'Umbraco.Web.Models.RenderModel' does not contain a definition for 'sections'

    And this is what the error is attributed to (in a relatively unmodified grid render).

    Any thoughts?

    Line 7: *@ Line 8:
    Line 9: @if (Model != null && Model.sections != null) Line 10: { Line 11: var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1;

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Jul 19, 2016 @ 17:41
    Alex Skrypnyk
    0

    Hi Amir,

    Can you show what are you using at inherits in your partial view ?

    @inherits Umbraco.Web.Mvc.UmbracoViewPage
    

    Looks like you need to change it to UmbracoTemplatePage.

    Thanks,

    Alex

  • 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