I hope someone can help me here. I'm at my wits' end - Google CSE was working perfectly on my work site until a few days ago, when I found out it was broken ([#540445]).
When I fixed that using pdrake's excellent fix, something else seems to have broken either at the Drupal end of things, or maybe at the Google config side of things?
Now instead of showing the Google CSE I configured - with blue links, no adverts (we're part of the NHS - yey for non-profitness!), and a 750px iFrame, I get a CSE which has a garbled interface.
Image attached, and you can see it for yourself at http://www.kssdeanery.org/search/google/courses
Steps I've taken to try fixing:
- Completely uninstalled and reinstalled module
- Turned off all caching and entirely flushed the cache (no small task as the site is using Boost!) - this fixed the search engine for one single page load, but when I reloaded it was broken again
- Check the Google CSE settings and changed them all individually
- Reverted to a vanilla CSE set-up - nothing fancy at all
None of these ideas made any difference though, apart from 2 and then only for one page load.
If anyone could help me fix this I'd be extremely grateful. Thanks everyone in advance :o)
Al
| Comment | File | Size | Author |
|---|---|---|---|
| Google CSE fail.png | 178.22 KB | alexgreyhead |
Comments
Comment #1
alexgreyhead commentedQuick update - this is how the results *should* look:
http://www.google.com/cse?cx=015915332891493491029%3Az8djqx0lvm4&ie=UTF-...
Comment #2
alexgreyhead commentedRight, I feel a bit more silly but a bit less confused now: I found that I had installed a copy of the .tpl.php files from the module in the active theme directory, and removing these has fixed Google CSE.
I'll do some more digging when I have a chance, but am just relieved that such a simple fix appears to have cured the problems.
Of course, the next thing for me is to work out why it was happening!
I've changed the status to "postponed" as I don't expect anyone to waste their time trying to diagnose this until I've done some more work. Thanks for reading in any case though! :o)
Comment #3
alexgreyhead commentedTitle updated as well.
Comment #4
funana commentedI have the same strange bug but no .tpl in the main theme's directory.
Even stranger: on my development server everything works fine, live server shows same bug like can be seen on your screenshot. I already compared the settings, the DB tables and copied the module directory from dev to live -> not working...
So I assume that something else disturbs the google CSE module. What could it be?
Edit: Ha! Reading http://drupal.org/node/626118#comment-3195118 gave me an idea: If you put the .js in your template's footer instead your header (which is recommended for performance reasons) then Google CSE does not work. Tested it. Can confirm this now.
Comment #5
udvranto commentedSame problem...
Comment #6
alexmoreno commented