Upgrade 4.1 to 4.2 Error
After upgrading from Sitefinity 4.1 to 4.2 we are now getting an error on some of the pages that says:
Uncaught TypeError: Cannot call method 'toLowerCase' of undefined -> Telerik.Web.UI.WebResource.axd:2072
The front end works fine still...but editing in the Sitefinity Page Manager results in a locked page with no publish button:
This is indeed a strange behaviour. Have you experienced the same behaviour when creating new pages? Also can you tell me if the affected pages are using a custom template?
Please check if you have the following lines referencing to these particular assemblies in your webconfig file:
New pages do not cause any issues that I've noticed. Yes a custom template is being used.
Also I verified that I do have those 4 lines in the web.config.
After reviewing more...the error was throwing .toLowerCase() is undefined but the root of the problem is that the "tagName" is null that is referencing the toLowerCase() method. Don't know if that helps at all.
In our master pages we had a content placeholder in the <head> tag:
<asp:ContentPlaceHolder ID="HeadPlaceHolder" runat="server">
So the code is looking for a "form" tag and because it was beginning its loop inside the <head> tag it never found the form tag and error-ed out.
I also had this problem upgrading from 4.0 to 4.4 actually. In edit mode nothing worked and in addition, the header graphics in the back-end when editing a page or template said they were missing.
I removed the content place holder in the head tag. This holder has always been there in previous versions. Do you recommend not putting one in there going forward? Or is it just an upgrade issue?
The problem you had with the content in the head tag is because in edit mode we are not using the ASP.NET rendering but our custom parser, which however does not support content in the head tag. The page will look ok on the front end but on the backend it will be hard for editing. Therefore we do not suggest placing content place holders in the head tag.
the Telerik team
By removing the <asp:contentplaceholder id="head" runat="server"></asp:contentplaceholder> causes problems. We did not put any code in there on any of the pages, however, when you go to edit a page, it crashes the site.
Only if I create NEW template without the head tag, does it work properly. How am I to resolve this? I have many tempaltes that I have created off of this one master file and the site is now live.
If I have any navigation on the page without the Head tags it seems to crash the site.
Can you check if you experience any problems when creating a blank page ( without a template ) and drop some widgets on it? If the problem is in the template or in any of the custom controls you have you can debug the project and see where the code is breaking the project.
the Telerik team