Menu

Need new maps key?

Help
2009-12-30
2013-05-30
  • Wes Groleau

    Wes Groleau - 2009-12-30

    Today, almost every page of my site tells me I need a new Google Maps key.  Did Google change something since last night?  I know I didn't.

     
  • Stephen Arnold

    Stephen Arnold - 2009-12-30

    Wes,  
    Not that I see on my site. Sure you didn't change any portion of your URI?  
    -Stephen

     
  • Greg Roach

    Greg Roach - 2009-12-30

    Wes - are you using SVN code?  A recent change moved all the configuration settings from the config.php file to the pgv\_site\_settings table - the GM key was part of this move.

    a) was there anything non-standard about your site configuration - e.g. perhaps you coded the key into the default\_config.php instead of config.php?

    b) what if you go to the gm config edit page, and re-enter it?

     
  • Thomas52

    Thomas52 - 2009-12-30

    You do NOT need a new key.

     
  • KosherJava

    KosherJava - 2009-12-30

    When I updated to the latest SVN a few days ago I had this issue that was resolved by going to the Google Maps admin section and saving the settings. This resolved this issue for me. I also helped an admin of another site who had not configured Google Maps at all with a similar issue. His config stated that GM was not on, but it still requested a key. I renamed his GM directory and the issue went away.

     
  • Wes Groleau

    Wes Groleau - 2010-01-01

    Thanks, everyone.  Hope your 2010 is off to a good start.
    When I first reported this, it happened on **every** INDI page.

    Now, it happens only occasionally.  That in itself is weird, as I have done SVN upgrades but have changed **no** admin settings and **no** PLAC subrecords.

    No change in domain or subdomain or PGV starting directory.
    Provider might have changed IP but that should be irrelevant.

    From kosherjava's comment, I went to that section.  Map mod was turned off-I thought I had it turned on, but I might have turned it off until I could clean up my PLAC lines a bit.  All the level info was defaulted-I had specified six levels and added prefixes for some of them, but I found it set to four and all the details blank.  The map key was still present, though.

    I made all the settings that I thought I wanted and saved.  Now it will take a while to determine the issue is resolved, since it has changed from every time to less than ten percent.

     
  • Greg Roach

    Greg Roach - 2010-01-01

    The latest SVN code stores the googlemap config settings (including the key) in the database, whereas older code stored it in a PHP config file.

    A bug existed in SVN code (for about 8 hours - which KJ found), where a really old config file wasn't imported correctly.  It is possible that you picked up that version of the code.  This would explain your missing prefix settings.

        Now, it happens only occasionally. That in itself is weird

    What do you mean by occaisionally?  Sometimes, for the same page, or differently for different pages.  Caching might explain the latter.

     
  • Wes Groleau

    Wes Groleau - 2010-01-02

    Picking up that bug is possible.  I update to HEAD almost every night, somewhere between 19:00 and midnight New York time.

    Would that somehow break the maps key?  There was a key in the slot on the config page, but verifying it is the correct one is a challenge for an accountant. 

    Making changes and saving did not help.  When I first posted, I would get the complaint on every indi page.  Something made it so that some pages would not complain.  But since putting in those prefixes and saving, it seems to be every time again.

     
  • Anonymous

    Anonymous - 2010-01-02

    Wes, I don't see anything in the new code that would actually damage the key. It might leave it out completely, but otherwise it wouldn't be touched as far as I can tell.

    I think its more likely that you have changed something about your URL compared to the URL you used when you originally registered with Google to get the key. It is very precisely URL based. You di say that you hadn't used the GM module for some time?

     
  • Anonymous

    Anonymous - 2010-01-02

    OK, forget everything I said.

    I just update the pgvthemes site, and have exactly the same issue as Wes.

    At first the GM module came up as not enabled, so I changed that back to enabled. But I still get "Need a new API key" on any page that tries to display a map.

    The key IS there, and it IS correct.

    I've cleared all cache's, and even tried a different browser completely.

    Strange, but if I try to edit a place in GM, it lets me, and displays maps OK.

    But I haven't had this problem on my normal family tree site, which runs latest svn??

     
  • Wes Groleau

    Wes Groleau - 2010-01-02

    My URI has definitely never changed since the domain was created.

    I guess "use" could have different meanings.  I definitely put the key and the prefixes in the config page.  I do not remember ever actually looking at any maps.  I do remember turning off the GM module some time in the past.

    When the error started occurring, it had been a long time since I had made **any** config changes. 

    I just went to the site again, clicked on someone in the recent changes list, got his INDI page with the error.

    So I went to Google, got a new key, went to the site, logged in, pasted in the key, and saved.  Went back to the welcome page, clicked on the same name, and got the INDI page with no GM key error.

    Clicked the Map tab.  "no imagery at the zoom level requested."  ?!?!? the zoom marker is in the middle of the scale!!

    Zoomed **out** several times, and finally got solid blue.  Ocean?  Zoomed out several more and saw the coast of Africa.  Having been a sailor for ten years, I recognized then that the pointer was at zero, zero.

    One of my places was malformed, so I guessed that was why.  But when I panned over to eastern Ontario to look for the rest of them, they were not there.

     
  • Wes Groleau

    Wes Groleau - 2010-01-02

    Looked at the Wiki and at my SVN working copy, and I think I see the second issue-there is no places file for Canada.  So I went to my grandfather.  All his events are in Michigan and Wisconsin, as are the births of his children.

    His map shows one marker for him, one for all three sons.  The markers are about a kilmoeter appart, but both close to zero, zero and both labeled N0, E0  (No decimals?)

    I do believe I imported some of the CSV files, but I'll go do it just in case.

     
  • Anonymous

    Anonymous - 2010-01-02

    I think we have similar but different issues.  I'm pretty sure mine will be a problem with the code. I'm seeing the issue on the pgvthemes demo of the ca-branch of PGV. Looking at the file googlemaps.php it is clearly nothing like the one in the main trunk. Partly due to its new tab features, but partly I suspect simply not synchronised. So I'll wait until that branch catches up with the main trunk before I try again.

    I did try getting a new API key, but it made no difference.

     
  • Wes Groleau

    Wes Groleau - 2010-01-02

    Sigh.  Apparently timing out trying to import the AR file or the MI file.

     

Log in to post a comment.