Skip to content
Loading...

Receiving stack overflow error at line 2

Title

Receiving stack overflow error at line 2

Description

Receiving stack overflow error at line 2

Please wait...
When loading a qListForm or qListView on a page you receive a stack overflow error at line 2 on the page.

Cause

This is caused by running a site in 2010 Mode in SharePoint 2013. This is an issue with SharePoints init.js file and how it was written and cannot be fixed within QuickApps

Resolution

<div>These JS errors are from SharePoint.</div><div></div><div>You can modify the INIT.js file to fix this issue.</div><div>You can find the INIT.js file here: C:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions14TEMPLATELAYOUTS1033.</div><div></div><div>Open this file and search for “DeferWebFormInitCallback()” function. This will show up in two places.</div><div></div><div>Make the following changes</div><div>1.<span class="Apple-tab-span" style="white-space:pre"> </span>Change from this</div><div>if(typeof WebForm_InitCallback=="function")</div><div></div><div>to</div><div></div><div>if (typeof WebForm_InitCallback == "function" && typeof window['_WebForm_InitCallback'] == 'undefined')</div><div></div><div>2.<span class="Apple-tab-span" style="white-space:pre"> </span>and change this from</div><div></div><div>if (typeof WebForm_DoCallback == "function")</div><div></div><div>to this</div><div></div><div>if (typeof WebForm_DoCallback == "function" && typeof window['_WebForm_DoCallback'] == 'undefined')</div><div></div><div>Save the file and your error message should go away.</div><div></div>

Defect ID

This is caused by running a site in 2010 Mode in SharePoint 2013. This is an issue with SharePoints init.js file and how it was written and cannot be fixed within QuickApps

Leave a Reply