0

At least on Google Chrome on Windows 7, the StackExchange network-wide search ("Search the Stack") is currently broken.

In the browser console there is a JavaScript error:

Uncaught TypeError: undefined is not a function

It seems to be a problem related to calling a Google JavaScript API. Here's the relevant code as shown in the console:

StackExchange Search error

6
  • 4
    Can't repro. Did you clear your cache?
    – Mat
    Nov 18 '12 at 10:22
  • 1
    Can't repro either. I see an error "Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL google.com/cse? ..." but it still appears to work. Nov 18 '12 at 10:27
  • Maybe your browser/proxy/firewall block the request for the JS file holding the Google custom search code. Nov 18 '12 at 11:20
  • @Mat: I did try Control + F5. Nov 18 '12 at 13:04
  • @ShaWizDowArd: Hmm possible. I get the same problem with Firefox and I am behind a captive portal, but I haven't noticed anything similar with any other sites yet. Oddly it does work fine in Opera, Safari and Internet Explorer 10! Nov 18 '12 at 13:08
  • 1
    Can you track the requests sent to the server in Firebug and see if any request is blocked or lost? Edit: oh.. extension of course! :/ Nov 18 '12 at 13:30
7

After seeing that nobody else has this problem I went through my browser extensions one by one.

It turned out that the popular privacy extension Ghostery 4.0.0 was responsible!

I'm now looking for a solution ...

So Ghostery does in fact explicitly bock Google AJAX Search API.

I'm not exactly sure why but they have a page on it that doesn't seem to really give a reason. There's also a topic in Ghostery's forum which isn't very informative either:

Ghostery breaks Google custom searches

There are two ways to address this:

  1. Turn off the block on Google AJAX Search API for all sites:

    Ghostery Trackers Widgets

  2. Whitelist http://stackexchange.com/search for all trackers:

    Ghostery Whitelisted Sites

1

Not the answer you're looking for? Browse other questions tagged .