Thursday, August 18, 2011

JavaScript Error on Search (WSS 3.0 SP2 w/Search Server Express)

At #spstcdc 2011, one of the presenters encouraged sharing when you figure something out and I realized I should start blogging about my day-to-day with SharePoint. I've rec'd so much help from the community, I realized I should give back whenever I have useful (and hopefully accurate) tips and tricks to share.

So here goes.

I needed to move my search center website(s) to a new content database and did so without issue EXCEPT: when I went to perform a search, I started getting this JavaScript error (see below) when I'd try to submit my query keyword.


=============================================================
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC EA 2; MS-RTC LM 8)
Timestamp: Thu, 18 Aug 2011 13:35:13 UTC


Message: 'options' is null or not an object
Line: 564
Char: 9
Code: 0
URI: http://mysitenamehere/_layouts/1033/search.js?rev=yqBjpvg%2Foi3KG5XVf%2FStmA%3D%3D
=============================================================
I was puzzled to say the least. I thought "oh, I shouldn't have moved this search center site, what have I done?"

I checked all my monitors, services, etc - I was stumped.

Finally, I realized that the scopes drop down was missing from the page. Here, turns out all I needed to do was re-associate the scopes I needed with the search box and the advanced search box and VIOLA! All better.

So, if you see this issue in your own sites/farm and you stumbled across this post, hopefully I've saved you some time and some grief!

No comments:

Post a Comment