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 2:28pm

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
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2009 12:37pm

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 8: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
Free Windows Admin Tool Kit Click here and download it now
April 16th, 2010 9: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 10: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.
Free Windows Admin Tool Kit Click here and download it now
June 7th, 2010 1:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics