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

Forums / Developing with Sitefinity / Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

4 posts, 0 answered
  1. Preetham
    Preetham avatar
    2 posts
    Registered:
    01 Nov 2013
    18 Oct 2014
    Link to this post

    When I login to my backend to edit the home page, I get the following error all of a sudden.. What went wrong?

    Uncaught TypeError: Cannot read property 'toLowerCase' of undefined Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl12_TSM&compress=0&_TSM_CombinedScripts_=%…:4911b.Dock.BaseView.initializeFormElement Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl12_TSM&compress=0&_TSM_CombinedScripts_=%…:4911b.Dock.BaseView.initialize Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl12_TSM&compress=0&_TSM_CombinedScripts_=%…:4893Type.callBaseMethod ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1b.Dock.ClassicView.initialize Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl12_TSM&compress=0&_TSM_CombinedScripts_=%…:4921b.Dock.BaseView Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl12_TSM&compress=0&_TSM_CombinedScripts_=%…:4891Type.initializeBase ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1b.Dock.ClassicView Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl12_TSM&compress=0&_TSM_CombinedScripts_=%…:4918Telerik.Web.UI.RadDock._getRenderingView Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl12_TSM&compress=0&_TSM_CombinedScripts_=%…:4405Telerik.Web.UI.RadDock.initialize Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl12_TSM&compress=0&_TSM_CombinedScripts_=%…:4409Sys.Component.endUpdate ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1Sys._Application.endCreateComponents ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1Sys._Application._raiseInit ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1Sys._Application._doInitialize ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1(anonymous function) ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1(anonymous function) ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1v ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1fb ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1V ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1ib ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1c ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1d ScriptResource.axd?d=taY0hiecOw7DRFaGSyWGHkR1JKXAWX-lOSa92aZn_ofCMy7lEYbcTtNdGF_XVQM0fu8kxUZAkGgay1…:1

  2. Junior Dominguez
    Junior Dominguez avatar
    115 posts
    Registered:
    06 Dec 2016
    23 Oct 2014
    Link to this post
    Hi Preetham,

    Can you please submit a support ticket regarding to this issue? We will probably ask you for your project to investigate the problem.

    Best Regards,
    Junior Dominguez
    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
     
  3. Preetham
    Preetham avatar
    2 posts
    Registered:
    01 Nov 2013
    23 Oct 2014 in reply to Junior Dominguez
    Link to this post

    I was able to figure out what the problem was.

     I deleted layout items from the page template without removing the widgets that go into those layouts in the page first.

     So, it caused all kinds of problems. 

  4. Brandon
    Brandon avatar
    0 posts
    Registered:
    28 Sep 2015
    29 Nov
    Link to this post

    We also encountered this error but had a different cause.

    In our master page, used as a page template, we had the following markup:

    <html>
        <head runat="server">
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <title></title>
        </head>
        <body>
            <sf:ResourceLinks runat="server" UseEmbeddedThemes="false" ID="jsResourceLinks">
                <sf:ResourceFile JavaScriptLibrary="KendoAll" /> <%--Required by Sitefinity, specifically the page editors--%>
            </sf:ResourceLinks>
     
            <form id="mainForm" runat="server">
                <asp:ScriptManager id="scriptManager" runat="server"/>
     
                <div class="wrapper">
                    <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
                </div>
            </form>
        </body>
    </html>

     

    A user control placed on a child however had the following code:

    <div class="email-form">
        <form>
            <input type="text" placeholder="email@example.com">
            <input type="button" value="submit">
        </form>
    </div>

     

    The issue is that this create 2 form tags (nested) on the page. One in the master page and one in the user control. I am not sure if nesting is the issue or simply that multiple form tags were present. Removing the 2nd form tag resolved our issue.

    For reference, we were receiving this error:

    Uncaught TypeError: Cannot read property 'toLowerCase' of undefined(…)

4 posts, 0 answered