Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
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
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
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.
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(…)