SCRIPT5009: ‘google’ is undefined

This is my first time working with wordpress and I’m using the version 3.4.1.
Since I used http://www.google.com/cse/, my website http://www.unicos.cc stoped working on IE. It starts loading and loading, but if you take a look on scripts you get this error:

<script defer onreadystatechange='google.loader.domReady()' src=//:></script>

SCRIPT5009: 'google' is undefined 
www.unicos.cc, line 1 character 1

I’m using this script on my header.php:

Read More
<script>
  (function() {
    var cx = '000262504839720845383:sqkphv1egay';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
</script>

And this code to call the function on my page-buscar.php (page-search):

<gcse:search></gcse:search>

You can take a look at the website. My code is there, waiting for your help. And so am I.

Thanks for your patience!

Related posts

Leave a Reply

1 comment