Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > "WebForm_InitCallback is not defined error" in CMSDesk View modes: 
User avatar
Member
Member
markcoatsworth - 1/11/2012 6:39:11 PM
   
"WebForm_InitCallback is not defined error" in CMSDesk
Hi folks,

We launched a new Kentico site back in the fall, and today our client called to complain that CMSDesk was not working. After poking around a bit in Firebug, I noticed that we're getting a series of Javascript errors:

WebForm_InitCallback is not defined (this came up several times)
WebForm_SaveScrollPositionSubmit is not defined (came up once)

This site was working fine yesterday so they just came up. I've looked around on Google and found several common solutions; unfortunately none of them apply to us.

It looks like this often happens when the system time falls badly out of sync. Not the case here. Several people also suggested bad configuration to web.config, Global.asax, and a couple of other files. However we haven't changed these files in several months and the Date Modified timestamps confirm this.

Has anybody experienced this with Kentico and have any idea how to fix it? I'd really appreciate any suggestions.

Thanks,

Mark


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/12/2012 3:24:37 AM
   
RE:"WebForm_InitCallback is not defined error" in CMSDesk
Hi,

What do you mean exactly by "was not working"> It wasn't working at all or some parts of the UI only? Could you please describe it in more details?

What was the most recent change prior this issue? Any hotfixes installed (Kentico's or Windows updatas)?

Does this occur in every browser? What are the plugins installed in your borwser? Have you tried to disable them?

Best regards,
Juraj Ondrus

User avatar
Member
Member
markcoatsworth - 1/12/2012 10:47:06 AM
   
RE:"WebForm_InitCallback is not defined error" in CMSDesk
Hi Juraj,

Thanks for your reply! I spent a lot of time yesterday debugging this issue, then somehow it solved itself out overnight. I'll include more information here in case anybody else runs into this.

We're running a Kentico 5.5 R2 site with no hotfixes. The problem in CMSDesk is that a lot of the javascript/ajax functionality suddenly stopped working -- for example, we could not expand the content tree. After debugging I realized the problem was the WebResource.axd handler was throwing a 404 error.

I soon realized the problem happened just after I made changes to the URLs and SEO settings -- I was trying to allow extension-less URLs. We did not make any changes to the web.config since the required IIS settings were already in place:

http://www.kentico.com/docs/devguide/index.html?custom_url_extensions_iis7.htm

But I did change some of the settings, and I'm guessing I broke the Kentico URL rewriting somewhere along the way. We have a staging server where I had imported the same site just a few days earlier, and this staging environment never had any problems.

Yesterday I rolled back all my changes to the original settings. I tried restarting the application and recycling the app pool but it was still broken.

When I woke up this morning it was working properly! There was some server activity and a Windows Update in the middle of the night but the server did not restart.

Anyway, if this happens again I'll post more information here. Thanks again for your help,

Mark

User avatar
Member
Member
markcoatsworth - 1/13/2012 10:02:11 AM
   
RE:"WebForm_InitCallback is not defined error" in CMSDesk
Quick update. This problem came up yesterday in a different Kentico site we're running (on a different server). I decided to wait until this morning to look into it, and by the time I did, it had already fixed itself.

So all my suggestions from the previous post (re: URL rewriting) are probably wrong. I'll post more information here if it happens again.