close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

API KEY error

Thread began 4/05/2011 2:23 pm by huijiun423574 | Last modified 6/14/2011 12:53 pm by Jason Byrnes | 3547 views | 10 replies |

huijiun423574

API KEY error

I have use www.mytest.com to get google API KEY.


I get the following error message:
This web site needs a different Google Maps API key. A new key can be generated at signup.html.


it is a static map, how to fix the API KEY error ?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

can you post a valid URL please where i can see the problem to investigate the cause.

Sign in to reply to this post

esmsBeta Tester

Same here.
contact-information.html

Anyone sort out this problem?

Sign in to reply to this post

Jason ByrnesWebAssist

you have a bad API key for your domain, the api key you are using:

ABQIAAAAhgaihhhzhUNRNPoA2_7aAhTDbVKM1_ueqQSBtmdAnXXz_RNTvBT-XZ15WAnQuYe1wA2oeCFBZFg2JQ


the API Key google generates for the domain:
www.energy-studio.co.uk

is:

ABQIAAAA6WPOHGcEKA55UdVGw-rYERQ0NQvvzDhgj2-kgXMJmZtyWbFmkxSk5PU4gAF2XCux1oMS3Qckk3vM5g




change the following code:

<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAhgaihhhzhUNRNPoA2_7aAhTDbVKM1_ueqQSBtmdAnXXz_RNTvBT-XZ15WAnQuYe1wA2oeCFBZFg2JQ">/*wagmp*/</script>




to use the correct api key:

<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA6WPOHGcEKA55UdVGw-rYERQ0NQvvzDhgj2-kgXMJmZtyWbFmkxSk5PU4gAF2XCux1oMS3Qckk3vM5g">/*wagmp*/</script>
Sign in to reply to this post

esmsBeta Tester

Thank you sir. I'll do that now. I don't understand why the API code is wrong though as I only generated it on Saturday.

Thanks anyway.

Sign in to reply to this post

esmsBeta Tester

Hello,

I've just replaced that line you suggested but it hasn't worked. The error message doesn't show now but neither does the google map.

Puzzled!

Sign in to reply to this post

Jason ByrnesWebAssist

the map js file attached to this page is for wagmp_map_1:
<script type="text/javascript" src="google_javascript/wagmp_map_1.js">/*wagmp*/</script>

but the map div is for wagmp_map_2
<div id="wagmp_map_2" style="width: 300px; height: 300px;">


change the div id to wagmp_map_1
<div id="wagmp_map_1" style="width: 300px; height: 300px;">

Sign in to reply to this post

esmsBeta Tester

Thank you sir. Yes - that worked.

I don't remember there being a setting in the extension asking for a 'div id' though.

Just in case it happens again when I build for a client, how do I make the extension generate the correct 'div id' if I there isn't a setting in the wizard for me to enter one?

Sign in to reply to this post

Jason ByrnesWebAssist

the div id is created based on the map, if you create another map a new JS file will be created using the namer google_javascript/wagmp_map_3.js which will use the div ID wagmp_map_3


my guess is that you added a second map to the page at one time which generated the wagmp_map_2 div, then deleted it from the page but deleted the wagmp_map_1 instead of the wagmp_map_2 div.

Sign in to reply to this post

esmsBeta Tester

Yes - that would make sense. I can't remember properly but I think I ran the extension a couple of times owing to it not working the first time with the API I received last Saturday. Owing to it not working, I guess I tried it a second time. And, then came here to ask why it wasn't working.

Thanks again.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...