_spBodyOnLoadFunctionNames' is undefined Error on all Pages

All replies

  • Hi Juan TF,

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Meanwhile, you can try the ways below,

    1. Recycle the IIS and clear the PC client IE data cache, check result.

    2. Re-run the Products and Configuration Wizard (reboot server if needed),  check result.

    3. Re-create the AAM, check result.


    Daniel Yang

    TechNet Community Support

    Monday, March 12, 2012 10:08 AM
  • Hi Daniel,

    Thank you for your response.  I have attempted the steps you listed and unfortunately, the error is still present.

    1. Recycled IIS and cleared client cache (Done)
    2. Ran Products & Configuration Wizard (Completed successfully but Farm Configuration Wizard failed to launch after completion)
    3. Rebooted server
    4. Since this is just a test environment, I do not have any alternate access mappings configured.  Not sure if I should be doing something differently here?

    Previously, when I ran IE as an administrator, Central Admin appeared normal.  Now I'm also experiencing the same problems even when I run with elevated privilege?

    I'll await your next response.  Thanks!

    • Edited by Juan TF Monday, March 12, 2012 4:40 PM
    Monday, March 12, 2012 4:36 PM
  • Hi Juan,

    You might want to make sure if the firewall is not blocking the site / port:10000.

    Wednesday, March 14, 2012 8:52 PM
  • Thanks for the tip!  I checked and there are no firewall issues for the port.
    Thursday, March 15, 2012 4:24 PM
  • Hi Juan,

    You might want to run fiddler and netmon to observe the traffic flow.

    Also, if you have multiple sharepoint servers on your farm, check if the files are missing/corrupt in 14 hive folder. 

    Friday, March 16, 2012 6:11 PM
  • Juan,

    Also, if you have custom master page try changing the master page to v4.default, this might help you to narrow the problem.

    some information about the java script _spBodyOnLoadFunctionNames:

    Friday, March 16, 2012 6:22 PM
  • Hi,

    Just cross check once whether all the share point default javascript files example: core.js and init.js files are loaded properly on the page.


    Monday, March 19, 2012 7:01 AM
  • I am getting the exact same behavior and it only presents itself in IE not in chrome or firefox.
    Tuesday, March 20, 2012 3:30 PM
  • As best as I can tell, both files are being loaded properly.

    <script type="text/javascript">RegisterSod("sp.core.js", "\u002f_layouts\u002fsp.core.js?rev=7ByNlH\u00252BvcgRJg\u00252BRCctdC0w\u00253D\u00253D");</script>
    <script type="text/javascript">RegisterSod("sp.res.resx", "\u002f_layouts\u002fScriptResx.ashx?culture=en\u00252Dus\u0026name=SP\u00252ERes\u0026rev=b6\u00252FcRx1a6orhAQ\u00252FcF\u00252B0ytQ\u00253D\u00253D");</script>
    <script type="text/javascript">RegisterSod("sp.ui.dialog.js", "\u002f_layouts\u002fsp.ui.dialog.js?rev=IuXtJ2CrScK6oX4zOTTy\u00252BA\u00253D\u00253D");RegisterSodDep("sp.ui.dialog.js", "sp.core.js");RegisterSodDep("sp.ui.dialog.js", "sp.res.resx");</script>
    <script type="text/javascript">RegisterSod("core.js", "\u002f_layouts\u002f1033\u002fcore.js?rev=1VDxRR0oL3\u00252FEtgWNP2\u00252BGbQ\u00253D\u00253D");</script>
    <script type="text/javascript">RegisterSod("sp.runtime.js", "\u002f_layouts\u002fsp.runtime.js?rev=9sKdsC9N6p2BiRk3313M7Q\u00253D\u00253D");RegisterSodDep("sp.runtime.js", "sp.core.js");RegisterSodDep("sp.runtime.js", "sp.res.resx");</script>
    <script type="text/javascript">RegisterSod("sp.js", "\u002f_layouts\u002fsp.js?rev=b0sEslB0uFZnnEZ33WjxOg\u00253D\u00253D");RegisterSodDep("sp.js", "sp.core.js");RegisterSodDep("sp.js", "sp.runtime.js");RegisterSodDep("sp.js", "sp.ui.dialog.js");RegisterSodDep("sp.js", "sp.res.resx");</script>
    <script type="text/javascript">RegisterSod("cui.js", "\u002f_layouts\u002fcui.js?rev=k\u00252B4HtUzT9\u00252B3mSycgD7gPaQ\u00253D\u00253D");</script>
    <script type="text/javascript">RegisterSod("inplview", "\u002f_layouts\u002finplview.js?rev=lxCL6dT9E0o\u00252F9jNw7YlGng\u00253D\u00253D");RegisterSodDep("inplview", "core.js");RegisterSodDep("inplview", "sp.js");</script>
    <script type="text/javascript">RegisterSod("ribbon", "\u002f_layouts\u002fsp.ribbon.js?rev=F\u00252BUEJ66rbXzSvpf7nN69wQ\u00253D\u00253D");RegisterSodDep("ribbon", "core.js");RegisterSodDep("ribbon", "sp.core.js");RegisterSodDep("ribbon", "sp.js");RegisterSodDep("ribbon", "cui.js");RegisterSodDep("ribbon", "sp.res.resx");RegisterSodDep("ribbon", "sp.runtime.js");RegisterSodDep("ribbon", "inplview");</script>
    <script type="text/javascript">RegisterSod("msstring.js", "\u002f_layouts\u002f1033\u002fmsstring.js?rev=QtiIcPH3HV7LgVSO7vONFg\u00253D\u00253D");</script>
    <script type="text/javascript">RegisterSod("browserScript", "\u002f_layouts\u002f1033\u002fie55up.js?rev=UgTcwUTI6YcRzTMBxD93Xg\u00253D\u00253D");</script>
    <script type="text/javascript">RegisterSod("socialdata.js", "\u002f_layouts\u002fsocialdata.js?rev=srp8t6aZS\u00252FjdrW3\u00252FJrn1iQ\u00253D\u00253D");</script>
    <script type="text/javascript">RegisterSod("sp.ui.socialribbon.js", "\u002f_layouts\u002fsp.ui.socialribbon.js?rev=q7gLNDKo68UsaWoEc\u00252FZCug\u00253D\u00253D");RegisterSodDep("sp.ui.socialribbon.js", "ribbon");RegisterSodDep("sp.ui.socialribbon.js", "socialdata.js");</script>
    <script type="text/javascript">RegisterSod("WPAdderClass", "\u002f_layouts\u002fwpadder.js?rev=hnGJJEMcU5XH\u00252BCq7PlSxJw\u00253D\u00253D");</script>
    <script type="text/javascript">RegisterSodDep("browserScript", "msstring.js");</script>
    <script type="text/javascript">

    document.write('<script type="text/javascript" src="/_layouts/1033/init.js?rev=BjQJs0OCQh3Zfydsdw2MYw%3D%3D"></' + 'script>');

    Tuesday, March 20, 2012 3:43 PM
  • Could this be where my problem lies?

    if (typeof(_spBodyOnLoadFunctionNames) != "undefined") {
    if (_spBodyOnLoadFunctionNames != null) {

    • Proposed as answer by Reshma Sutar Thursday, April 09, 2015 10:01 AM
    Tuesday, March 20, 2012 3:44 PM
  • if _spbodyonloadfunctionnames' is undefined error occurs then check weather 
            <SharePoint:ScriptLink ID="ScriptLink1" name="init.js" runat="server"/> is before the js code written.

    Thursday, April 09, 2015 10:02 AM
  • Did you find the fix for this issue? we are trying to install MOSS SP3 and facing the same issue.

    Owens G. Jesse

    Thursday, August 13, 2015 5:39 PM