Pages: [1]
Print
Author Topic: Request resulted in error. The server may be unavailable.  (Read 794 times)
ronfarber
Pre-Sales
Newbie
*
Posts: 3


« on: October 13, 2010, 08:30:23 PM »

I have everything correct, including the API key in the script call and the back end, yet when the golf locator loads the page, I get this: Request resulted in error. The server may be unavailable.

Once I hit ok, I see a map, but searches do not work. I am 100% sure the data is correct, the database connections are correct, and that the google script call is correct and formatted as they want it on their site, including the additional sensor=false call...

I am not using any filtering as I dont have carts or anything else if that helps
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #1 on: October 14, 2010, 07:22:25 AM »

sensor=false is a part of the Google Map version 3 API call and is not included in any part of the LiteRadius v32 code. We have not released a version of LiteRadius for the Google Map V3 API yet, so it is unclear why sensor=false would even be involved unless you have changed the structure of the API call.

The only item you need to include in the default golf locator demo page is your API key (in the location where it says "INSERT_YOUR_API_KEY_HERE").
Logged
ronfarber
Pre-Sales
Newbie
*
Posts: 3


« Reply #2 on: October 14, 2010, 02:06:40 PM »

Did that. Still same error. Actually I did it the right way first. Originally, I had the wrong API code (I hadn't changed it) and it said it wasn't the right API for my site. So I figured it out by editing the source code and replacing it with my key, then I got this error instead of the "wrong API" one, so I doubt its a google key error... Would it matter that I have no carts, dining, or pro shops in my customer data?

All I have is locations.They all are in there fine, they geocoded fine, but the locator does this. You can see it and view source at http://miraclegroutshield.com/golf_locator.htm. Any help would be appreciated.
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #3 on: October 14, 2010, 02:53:38 PM »

Look at the name of your install directory, it should be lr_v32 as that defines the locaton of other Javascrit resources. When you unziped the archive it places all the files in a the directory lr_v3_2. You are probably running LiteRadius out of lr_v3_2. There are also references to lr_v3_2 in the golf_locator.htm page that will need to change too.

You'll also have to re-geocode your locations because you are getting integer rounding. Please refer to this post:
http://literadius.escaperadius.com/index.php/topic,59.0.html
Logged
ronfarber
Pre-Sales
Newbie
*
Posts: 3


« Reply #4 on: October 14, 2010, 07:29:35 PM »

Ok, I got all of this correct, and I re-geocoded after the changes to the config file, which seem to have worked correctly, and now I get no error and a clean map using the API. But the search button does nothing now. I know I am almost there and with your help on this last part, I can be!

Thanks
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #5 on: October 14, 2010, 08:04:58 PM »

For some reason the Javascript onClick event, in your Search Locations button, has a different name. It should be:
 
Code:
<input name="button" type="submit" onclick="searchLocations()" value="Search Locations"/>
Logged
Pages: [1]
Print
Jump to: