Any way to see the errors from Low Google search?
Is there any way to see the errors from Low Google search response? I'm seeing Error getting http://www.google.com/cse?... with a message to check settings. It would be helpful if I knew what the error was. Also, are there settings for the module, or does this refer to the tags. My suspicion is that the free version of google search cannot be accessed from a different URL than the site, which is what I am trying to do from the dev environment. Thanks for your help.
Replies
Low 29 Nov 2012 21:22
If I'm not mistaken the CSE is the free version of Google's custom site search, which doesn't return XML. Therefore, it's not compatible with Low GoogleSearch. You need the (paid) custom search: http://www.google.com/enterprise/sear... in order to get the results to work with Low GoogleSearch.
nrackleff 29 Nov 2012 22:25
Google appears to confirm this in their side-by-side comparison. http://support.google.com/customsearc...
I will see if the client would like to upgrade. $100 / year is not a lot to be able to have nicer looking integrated results. Thanks for the reply.
nrackleff 1 Dec 2012 20:24
We upgraded our client to Site Search, but I am still getting an error. Is there something I need to do other than upgrading? We are attempting to do this from a dev server that is not in the same domain as the live site. Error: "You are not authorized to perform this action".
nrackleff 1 Dec 2012 21:52
Another update. I'm still getting the not authorized error in the plugin results, but if I just put the string http://www.google.com/cse?q=kidney&ou... (replacing [hidden] with the actual ID) in my browser, I do get XML returned. I am not browsing from an IP under the domain.
Low 2 Dec 2012 09:47
The "You are not authorized" error points to the Secure Forms setting in EE. You can turn that off for Low GoogleSearch by adding secure="no" to the Form tag parameters.
nrackleff 3 Dec 2012 17:01
Thanks for the response. I have added secure="no". I am still getting errors. this time it says Error getting http://www.google.com/cse?q=heart&out...
Please check your settings or try again later. I do see XML returned when I paste the URL into the browser. Here are my form and results tags.
{exp:low_googlesearch:form secure="no" results_page="search/results"}
<input type="text" id="keywords" name="keywords" class="input-text" style="border: 1px solid #ccc;"/>
<button type="submit" id="searchSubmit" name="searchSubmit" class="input-submit">Search</button>
{/exp:low_googlesearch:form}
</div>
{exp:low_googlesearch:results keywords="{segment_3}" secure="no" cx="005806001714003133742:aicr01arhcy" client="google-csbe" site="silvertonhealth.org" oe="utf8" results_page="search/results"}
...
{/exp:low_googlesearch:results}
I am using EE 2.5.3
Low 3 Dec 2012 17:12
Try removing the client="" and site="" parameters, which should play better with Google's hosted version.
nrackleff 3 Dec 2012 17:16
Didn't help, still getting. Error getting http://www.google.com/cse?q=heart&out...
Please check your settings or try again later.
Current string
{exp:low_googlesearch:results keywords="{segment_3}" secure="no" cx="[hidden]" oe="utf8" results_page="search/results"}
Anything else I might try?
Low 3 Dec 2012 17:21
So, it's not working with this opening tag? It is on my machine...
nrackleff 3 Dec 2012 17:26
I'm using segment_3, but no, it is not working from our dev server in the template, but it does return XML if I paste the link in my browser.
Low 3 Dec 2012 17:31
Hmm... is your dev server behind a firewall, maybe? Or are you sure the server has either allow_url_fopen or Curl enabled?
nrackleff 3 Dec 2012 17:31
Just made an interesting discovery. I have a duplicate of the site on localhost. The code works fine from there, so it must be something in our dev setup. I will look into it from that end. Thank you for your help. I will let you know what I find.
nrackleff 3 Dec 2012 17:35
I don't believe it's behind a firewall. I will check on allow_url_fopen and/or Curl.
nrackleff 3 Dec 2012 17:39
allow_url_fopen is on. Checking the firewall issue.
Low 3 Dec 2012 17:45
It's definitely something environmental... Your dev server doesn't seem to be able to get the XML while both our local environments can... Keep me posted...
nrackleff 3 Dec 2012 17:55
Will do. I notice that my local server (in MAMP) does have cURL, but the dev server does not. They both have allow_url_fopen. cURL is not required if allow_url_fopen is on, right?
nrackleff 3 Dec 2012 18:22
We installed cURL and it is working now. It was not working with allow_url_fopen by itself. Is this just an anomaly with our server, or do you need both? thanks again for your help with this issue.
Low 3 Dec 2012 18:55
It does an ini-check to see of allow_url_fopen is available. If not, it checks cURL. If that isn't available, it bails out. Maybe your dev server returned FALSE in the first check... In any case, you should only need one.
Anyway, glad it's working now!