Glad to help.

Let's list the sequence of events when someone visits your page - it may
clarify things a bit:

1) The browser does an HTTP GET request to your server to get a web page.

2) Your server runs Joomla's PHP code.

3) That PHP code generates a page of HTML text.

4) The HTML page is downloaded to the browser.

5) The browser downloads <script src="..."> external scripts, and runs those
scripts along with <script> inline scripts.

6) One of those scripts is the Maps API URL with the API key in it. The API
key is checked by the Google server that delivers that script file or the
JavaScript code contained in it. (I don't know which, but it doesn't make
any difference for this discussion.)

So, no Google code ever sees or validates your API key until step 6. But
we're not getting past step 2. Any problem with the API key is happening
while it's still on your server - at this point the API key is just a string
of text, like any of the other text that Joomla includes the HTML page.

Here, try this experiment: You are using the API key in a URL like this,
correct?

    <script type="text/javascript"
        src="http://maps.google.com/maps?file=api&key=yourkeyhere";>
    </script>

Change it to:

    <script type="text/javascript"
        src="http://notmaps.notgoogle.notcom/maps?file=api&key=yourkeyhere";>
    </script>

and you should still get exactly the same server error. The point being that
it's not a question of whether the API key is valid according to Google -
Google isn't validating it yet.

Hmm... Are you using the API key in a <script> tag like that - or is it
being fed into some Joomla module?

-Mike

tl;dr It's an error in your Joomla/PHP code, not a Maps API or API key
validation error.

On Tue, Jan 25, 2011 at 1:13 PM, Jake Mabey <[email protected]>wrote:

>
> Thanks guys for pointing me in the right direction. Every error that
> shows up in the error log points to the google map and the various
> views it can be shown int, more specifically when it tries to validate
> the api key. If it's not the api key then this helps me pin point the
> error a little more.
>
> Jake
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps API V2" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to