init.js and core.js error on a sharepoint forms authenticated Login Page
Good day experts,I am new in sharepoint development and I would like to know what causes the script error on IE8 for a init.js and core.js. I am using a forms authenticated login.Early this morning I was able to browse the site with no problem. Until I did some configuration (using Central Admin) for AAM and created some new users. It did some access deny result to users but I managed to put it back. I am not sure about the other guys doing the configuration. I was asking them for any configuration they did and they said "nothing"Tried logging in again and it worked fine again.I don't know what happened but when I tried logging in again later, AND EVEN JUST BY LOADING THE custom LOGIN I have done, It causes a script error for INIT.JS and CORE.JS. I tried accessing the site using Mozilla and it works fine! Also, accessing the link in the web farm internally works fine too even with IE8 or FF3.By the way, the link I was trying to access was a public IP which points to a load balancer on a web farm. and using MOSS 2007Can anyone enlighten me with what is the cause of this and how this is fixed?I don't want to staright away update files because i have no idea what is causing this problem.These are the script error messagesWebpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)Timestamp: Mon, 28 Dec 2009 11:26:39 UTC Message: Syntax errorLine: 1Char: 1Code: 0URI: http://someIPaddress:15000/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D Message: Syntax errorLine: 1Char: 1Code: 0URI: http://someIPaddress:15000/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)Timestamp: Mon, 28 Dec 2009 11:24:47 UTC Message: Syntax errorLine: 1Char: 1Code: 0URI: http://someIPaddress:15000/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D Message: Syntax errorLine: 1Char: 1Code: 0URI: http://someIPaddress:15000/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D Thanks in Advance!!
December 28th, 2009 6:28am
Hi, Please verify that Active Scripting, ActiveX and Java which are all involved in shaping the way information displays on a Web page are not being blocked by IE8. By default, ActiveX controls and Java programs are turned off at the High security level in Internet Explorer. If this doesn’t help, try to clear the temporary Internet-related files. When you open Web page, some display problems may occur if the temporary Internet files folder becomes too large. For details about how to troubleshoot script errors in Internet Explorer, please refer to:http://support.microsoft.com/kb/308260 Hope it can be helpful to you. Lily Wu
December 30th, 2009 4:37am
Hi Gino, Just now am got the same issue when creating an anonymous page like login page. and am found the reason and solution. The reason was the file init.js and core.js can't be access without login to the sharepoint site. so just give anonymous access to these files in the web.config as below. <location path="_layouts/1033/styles/core.css"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> <location path="_layouts/1033/CORE.JS"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> <location path="_layouts/1033/INIT.JS"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> without providing this in the web.config. if you try to access http://yourmachine/_layouts/1033/init.js it will navigate to the login page. thats it will return an html page instead of the js file thats why it shows syntax error. so add this in the web.config file. I think now it is clear. srj
March 8th, 2010 12:55am
I tried everything above and still nothing. Im using asp Membership and it won't redirect to the login page i have pointed to in the webconfig. It just stops dead at the url. Help
April 16th, 2010 2:37pm
I had a similar problem and to fix it, I used SharePoint designer. I went to Help > Office Diagnostics. This fixed the error.
June 1st, 2010 3:54am
Thanks SRJ. I've implemented the code that you provided but I'm now getting an error that points to the location attribute not having a "section declaration". Any ideas? N03L.
June 7th, 2010 6:03am
I was very sceptical about this solution, and did not think it would solve anything. But because it was the easiest solution offered (a couple of clicks) I went for it. And I was nicely suprised because it did solve my problem! Not only I was able to get rid off IE script error about the init.js not loading from /_layouts/ but also I was starting to have issues opening pages in SP Designer 2007 and that fixed it too. Quite unbelivable for the first issue to go around this way. I thought for sure I would need to tweak webconfig file because I thought the issue had to do with permissions to that .js file as others indicated here. In short, your solution worked for me. Thank you for your time to post it! It was helpful.Basia
September 26th, 2012 1:43pm
Old thread, but I'm hopeful that this might fix an intermittent problem I've had for a long time now. I've added shijuraj's web.config access, so far so good. The FBA site goes down a couple times a day, so waiting to see. Was wondering if bislander was referring to shijurag's or chester23's posts. SPDesigner sounds promising, but hardest to reverse if things go sideways. Any record of what the Diagnostic's results revealed/repaired? Much thanks, Scott
October 17th, 2012 10:56am
web.config edits were promising at first, but the external site has failed since. Still interested in the SPDesigner > Office Diagnostics, but a little gunshy.
October 19th, 2012 2:23pm