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

Forums / Bugs & Issues / page error when no browser locale set

page error when no browser locale set

2 posts, 1 answered
  1. Webteam
    Webteam avatar
    28 posts
    Registered:
    30 Nov 2009
    20 May 2010
    Link to this post
    We have a site with localization enabled and using the browsers set locale.  example config line below...

    <

     

    localization defaultProvider="Sitefinity" autoSetClientLanguage="true" persistenceMode="PathPrefix" defaultCulture="en" allowSpecificCultures="True" cultures="en,en-GB,es-ES,fr-FR,de-DE,it-IT,ja-JP,ko-KR,pt-BR,zh-CN,zh-TW,nl-NL,da-DK,nb-NO,sv-SE">

    We also have the site set not to redirect to the homepage, and to use extensionless urls (II7 integrated pipeline mode).

     

    redirectToHomePage

     

    ="false"

     

     

     

    pageExtension

     

    =""

     

     


    As long as the user has a language set within the browser everything is fine, however if they have no language set then instead of redirecting to the default locale, ie /en/ an error page is displayed (see attached screenshot).  In the instance where there is no browser language set I would think sitefinity should use the default language.  Please advise.

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 May 2010
    Link to this post
    Hi David Desjardins,

    The problem comes from some logic that you have in a user control that you have created - UserControls_Custom_Omniture and its Page_Load event. Inside Page_Load there is some wrong logic, most probably an loop.T his type of error is  thrown by the .NET Framework, when you are accessing an item in an indexed object and the accessed index is out of bounds.  You have an ArrayList and you are trying to access an index that is not available. It looks like at the time your are trying to retrieve some data there are not  items. The problem is most probably related to the way you are binding this control and in which stage of its lifecycle you are doing this. You could attach your code to VS debugger and see when and why the error is raised.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
2 posts, 1 answered