I've been using CSE with great results for quite a while. Today I noticed that searches don't return any results. I'm getting the same results on several sites. I'm returning the results to a iframe. I tried changing that setting to display on Google but still no results
I see on Google's CSE page that they are transitioning to a Custom Search Element. Might that be the issue? http://googlecustomsearch.blogspot.com/2011/11/iframe-custom-search-engi...
The module is outing the following code.
<form action="/search/google" accept-charset="UTF-8" method="get" id="google-cse-results-searchbox-form">
<div><input type="hidden" name="cx" id="edit-cx" value="003321618576478813351:w55shzhvmvg" />
<input type="hidden" name="cof" id="edit-cof" value="FORID:11" />
<div class="form-item" id="edit-query-wrapper">
<label for="edit-query">Enter your keywords: </label>
<input type="text" maxlength="128" name="query" id="edit-query" size="40" value="environment" class="form-text" />
</div>
<input type="submit" name="op" id="edit-sa" value="Search" class="form-submit" />
<input type="hidden" name="form_build_id" id="form-1e6fba30af7c7f0399ed5cae6e73ea20" value="form-1e6fba30af7c7f0399ed5cae6e73ea20" />
<input type="hidden" name="form_id" id="edit-google-cse-results-searchbox-form" value="google_cse_results_searchbox_form" />
</div></form>
<div id="google-cse-results">
<noscript>
<a href="http://www.google.com/cse?q=environment&cx=003321618576478813351%3Aw55shzhvmvg&cof=FORID%3A0&sitesearch=">View the results at Google</a>, or enable JavaScript to view them here. </noscript>
</div>
<script type="text/javascript">
//<![CDATA[
var googleSearchIframeName = 'google-cse-results';
var googleSearchFormName = 'google-cse-results-searchbox-form';
var googleSearchFrameWidth = Drupal.settings.googleCSE.resultsWidth;
var googleSearchFrameborder = 0;
var googleSearchDomain = Drupal.settings.googleCSE.domain;
var googleSearchPath = '/cse';
//]]>
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
Comments
Comment #1
technikh commentedSame issue here. I tried applying the patch mentioned in here http://drupal.org/node/1268352
but I get page not found error.
Comment #2
ryan88 commentedSame problem here, I use this module on 20+ different sites, which are all not functioning right now. Please fix this problem asap! I am going to have to go back through each site now and either paste in google cse code or revert back to the standard drupal search if this isn't fixed soon!
Comment #3
ryan88 commentedduplicate post
Comment #4
dunklea commentedI used the patch in this post and so far it seems to have fixed the problem: http://drupal.org/node/1099294
Cheers,
Andrew
Comment #5
ttkaminski commentedI posted a patch here #1268352-6: Search results page empty except for header, search box -- retyping search then works that fixes the problem.
Comment #7
ryan88 commentedFor anyone else having the same problem, the post by ttkaminski worked for me.
I wish google wouldn't randomly change things...
Comment #8
mayjorb commentedThis patch from ttkaminski worked for me also
Comment #9
malcomio commentedTidying up the issue queue, and marking issues as won't fix where the version is no longer supported.