huguette debray

Q: error message when localizing my pictures (Google maps)

Excuse my bad english, I'm french! When I try to inform the location of my pictures in IPhoto with the tool Google Maps in the Info window, I get this message: "Oops! something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details"

What can I do with Java script?

Thank you for your answer.

MacBook Pro, Mac OS X (10.6.8), I Photo 11

Posted on May 31, 2016 2:03 PM

Close

Q: error message when localizing my pictures (Google maps)

  • All replies
  • Helpful answers

  • by Old Toad,

    Old Toad Old Toad May 31, 2016 2:12 PM in response to huguette debray
    Level 10 (141,125 points)
    Mac OS X
    May 31, 2016 2:12 PM in response to huguette debray

    Apple's contract with Google to use Google maps in conjunction with locations of photos in the iPhoto library was canceled a couple of months ago.  Therefore iPhoto 9.4.3 and earlier can no longer access the Google map servers and will get that error message.

     

    If you're using iPhoto 9.4.3 or earlier you can stop the crashing by doing the following but will lose the map feature in the library.

    iPhoto 9.4.3 and earlier began to crash for many users all of a sudden a few weeks ago. This is because the contract between Apple and Google for use of Google maps with iPhoto 9.4.3 and earlier for Locations expired a couple of months age and was not renewed. That is the case of the freezes or crashes.

     

    Apple now uses its own Maps program for Locations and too use it you must be running iPhoto 9.5.1 and Mavericks or 9.6.1 and Yosemite or El Capitan or Photos and El Capitan.

    Try  Huxly647's solution:

    Huxly647Nov 20, 2015 12:05 AM
       Re: iPhoto crashes after opening repeatedlyin response to carvermon

    I found a fix that works for me.

     

    1. goto /Applications/iPhoto.app/Contents/Resources (Control (right)-click on the iPhoto app and select Show Contents in the contextual menu - OT.)

     

    2. delete the files ' googlemap.html ' and googlesearch.html

     

    iPhoto no longer crashes, places doesn't work but it doesn't bother me too much.

     

    Let me know if it works for you guys...

    Removing the two files ' googlemap.html ' and googlesearch.html from iPhoto's application bundle prevents the javascript inside from being executed and causing the crash.  Going offline does obviously do the same. So it is pretty clear, that something happened on Google's end.

     

     

    There's a hack posted by user cotton-x that will let iPhoto 9 and earlier continue to use Google Maps for the location feature.

    cotton-x

    Dec 16, 2015 2:49 PM

    Re: iPhoto 11 - Problems With Photo Locations

    in response to Paul Fisher

     

    YES!

    I have just made it work.

     

    I'm on a white macbook running 10.7.5 with iPhoto 9.4.3

     

    Thanks to Paul I had an idea. What if we just ignored Apple's expired API and used our own, private and free from Google. Turns out it works.

     

    Here's what you have to do:

    0- Close iPhoto

    1- Create a google account or use your own

    2- Access Google's developers console HERE

    3- Create a project (any name)

    4- Activate a Google Maps Javascript API

    5- Generate your own API key

    6- Go to folder /Applications/iPhoto.app/Contents/Resources/googleMap.html

    7- Edit the googleMap.html (I've used an application called TextWrangler)

    8- Change this src="http://maps.googleapis.com/maps/api/js?v=3&client=gme-appleinc&sensor=false"> to this src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE&signed_in=true&sensor=false">

    9- Save your freshly edited googleMap.html

    10- Open iPhoto and enjoy.

     

    Take that Apple.

    Screenshot 2015-12-16 20.46.41.png

     

    Be sure to make a backup copy of the iPhoto application before attempting this procedure.

    OTsig.png