Copied to clipboard

Flag this post as spam?

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


  • Mark Evans 86 posts 116 karma points
    Jan 30, 2014 @ 11:03
    Mark Evans
    0

    home page error

    on installing umbraco and opting for the txt starter kit, i get an error on the home page...

    The call is ambiguous between the following methods or properties: 'Umbraco.Web.UmbracoHelper.Content(params int[])' and 'Umbraco.Web.UmbracoHelper.Content(params string[])'

     

    Line 6:      <div id="banner-wrapper" style="background: url('@CurrentPage.BannerBackgroundImage') center center no-repeat;">
    Line 7:          <section id="banner">
    Line 8:              <h2>@Umbraco.Field("bannerHeader")</h2>
    Line 9:              @*<span class="byline">@Umbraco.Field("bannerSubheader")</span>*@
    Line 10:             <a href="@Umbraco.Content(CurrentPage.BannerLink).Url" class="button">@Umbraco.Field("bannerLinkText")</a>


    Source File: c:\Dev\MyUmbracoSite\Views\Partials\umbHomepageBanner.cshtml    Line: 

    how do i fix this?

     

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 30, 2014 @ 11:09
    Ismail Mayat
    0

    Mark,

    Which version of umbraco have you installed?

  • Charles Afford 1163 posts 1709 karma points
    Feb 01, 2014 @ 12:37
    Charles Afford
    0

    It will be something to do with refrences in your refrence section.  Try removeing all the code and running the page, do you get the error still?.  Add code back in until you find the error.  Hope thi helps.  Charlie :)

  • Kurt Bilde 10 posts 30 karma points
    Feb 01, 2014 @ 16:10
    Kurt Bilde
    0

    Seems to be an issue with the bannersubheader and this specific line:

    <span class="byline">@Umbraco.Field("bannerSubheader")</span>

    If the subheader is disable the error disapear...

    -Kurt

  • Kurt Bilde 10 posts 30 karma points
    Feb 01, 2014 @ 16:13
    Kurt Bilde
    0

    Appear in 7.0.2

    -Kurt

  • Charles Afford 1163 posts 1709 karma points
    Feb 01, 2014 @ 21:37
    Charles Afford
    0

    Ah ok that is becuase there is no property called bannerSubheader on the doc type.

    You either need to remove that code or add that property to the doc type?

    Did you experience this on a starter kit?  If so and you can replicate it raise it as a bug :)

    If you need any more help send us a message :).  Charlie.

  • Kurt Bilde 10 posts 30 karma points
    Feb 01, 2014 @ 21:40
    Kurt Bilde
    0

    Hi Charlie,

    Yes indded it a bug wit hthe starter kit... Please provide info on how to add to the doc type.

    Best

    Kurt

  • Charles Afford 1163 posts 1709 karma points
    Feb 01, 2014 @ 21:51
    Charles Afford
    0

    Hi Kurt.

    What starter kit was it?  I will take a look for you tomorrow.

    If you can replicate it submit a bug report to: http://issues.umbraco.org/dashboard. :)

    I dont know the doc type.

    If you go to the home node on one of the tabs will be 'document type'

    If you go to the developers section > Document types

    There will be that doc type you saw on the home node.

    You need to add the correct property to this doc type with the alias "bannerSubheader"

    Hope this helps :)

    Charlie :)

  • Kurt Bilde 10 posts 30 karma points
    Feb 01, 2014 @ 22:13
    Kurt Bilde
    0

    It's the http://html5up.net/txt/ starterup kit that causes alle the troubles...

    -Kurt

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 02, 2014 @ 20:30
    Jeroen Breuer
    0

    I've also run into this problem after installing the starter kit. There is also an issue for this: http://issues.umbraco.org/issue/U4-3633

    Jeroen

  • Kurt Bilde 10 posts 30 karma points
    Feb 02, 2014 @ 21:14
    Kurt Bilde
    0

    Thanks Jeroen!!!!

    -Kurt

  • Charles Afford 1163 posts 1709 karma points
    Feb 02, 2014 @ 21:44
    Charles Afford
    0

    Yea i installed it, sorry not been able to update x.  I got the same thing.  there is a bug submitted :D.  Charlie.

    Thanks Jeroen :D 

Please Sign in or register to post replies

Write your reply to:

Draft