+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / After add New language then getting 'Object reference not set to an instance of an object.' in pages

After add New language then getting 'Object reference not set to an instance of an object.' in pages

2 posts, 0 answered
  1. Vipin
    Vipin avatar
    2 posts
    Registered:
    11 Apr 2014
    11 Apr 2014
    Link to this post

    Added spanish language in sitefinity cms. After this getting object reference issue while on open  pages. When I remove 'Language Selector' from this template page. Then no issue. It is working fine.

    But when I add 'Language Selector 'Control then getting error as

    Object reference not set to an instance of an object.

    [NullReferenceException: Object reference not set to an instance of an object.]
    Telerik.Sitefinity.Modules.Pages.PageExtesnsions.FormatRelativeUrl(PageNode pageNode, Boolean fallbackToAnyLanguage) +333
    Telerik.Sitefinity.Modules.Pages.PageExtesnsions.GetFullUrlIgnoreCache(PageNode pageNode, CultureInfo culture, Boolean fallbackToAnyLanguage, Boolean resolveUrl) +48
    Telerik.Sitefinity.Modules.Pages.PageExtesnsions.GetFullUrl(PageNode pageNode, CultureInfo culture, Boolean fallbackToAnyLanguage, Boolean resolveUrl) +52
    Telerik.Sitefinity.Localization.UrlLocalizationStrategies.UrlLocalizationService.ResolvePageUrl(PageNode pageNode, CultureInfo targetCulture, Boolean useNewImplementation) +156
    Telerik.Sitefinity.Localization.Web.UI.LanguageSelectorControl.GetMissingLanguageUrl(CultureInfo ci) +71
    Telerik.Sitefinity.Localization.Web.UI.LanguageSelectorControl.GetUrlForLanguage(CultureInfo ci) +133
    Telerik.Sitefinity.Localization.Web.UI.LanguageSelectorControl.LanguagesRepeater_ItemCreated(Object sender, RepeaterItemEventArgs e) +256
    System.Web.UI.WebControls.Repeater.OnItemCreated(RepeaterItemEventArgs e) +115
    System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +87
    System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +478

     

    What is the issue . how can solve this

     

  2. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    02 Dec 2016
    15 Apr 2014
    Link to this post
    Hello,

    I am currently trying to replicate this issue on my end, but for now without any success. This kind of problem is not a common issue and I will need a bit more detailed information in order to perform some additional tests. Could you please inform us what is the version of Sitefinity which you are currently using. It will be great if you can provide and detailed steps which I should use to replicate the problem on our end.

    Regards,
    Kaloyan
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered