theForm is not defined after site login issue after hotfix installed

Laura Frese asked on September 17, 2014 18:44

This is not necessarily a question, more a bug report and a fix for it. I have a site that has some parts that do not require authentication, other parts do. When a user logs in, the forms on the page no longer work, logout button doesnt work either. The page has the following js errors: Uncaught TypeError: Cannot read property of 'onsubmit' of null Uncaught ReferenceError: theForm is not defined

I didnt get these error until installing the hotfix 7.0.103 Oddly, I would only get these errors if I logged in through the site but when I logged in through the CMS Desk then went to the member page in the site, I didnt get these errors. A check of the HTML indicated that was present when logged in through the CMS Desk but not when logged in through the site. I added that block into the head of my template and the js errors went away when logging in through the site.

Recent Answers


Laura Frese answered on September 17, 2014 18:46 (last edited on September 17, 2014 18:46)

This is the script that was present when logging in through the CMS desk

src="/CMSPages/GetResource.ashx?scriptfile=%7e%2fCMSScripts%2fcmsedit.js"

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 18, 2014 02:00

Had this issue before with Chrome. Clear your cache and close your browser and try again. Seems the CMSDesk has some JS files and other items cached.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.