Support » Plugin: Store Locator Plus® for WordPress » Directions link returns 404 error

  • Resolved mcmahant

    (@mcmahant)


    Great plugin, I purchased the Pro upgrade to show my support.

    Unfortunately when I click the “directions” link on any result I get a 404 error from Google. I noticed the link produced by the plugin looks something like this:
    maps.googleapis.com/maps?saddr=blahblahblahblah

    if I change it to:
    maps.google.com/maps?saddr=blahblahblahblah
    everything works fine

    http://wordpress.org/extend/plugins/store-locator-le/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter mcmahant

    (@mcmahant)

    Here’s the site I’m currently working off of
    http://www.graphicdesignhero.com/talonvise/store-locator/

    Plugin Author Lance Cleveland

    (@charlestonsw)

    Ah… interesting… I was advised to change the maps URL for the USA maps to “maps.googleapis.com” not “maps.google.com”. Forgot I did that and it turns out the problem I was trying to solve had NOTHING to do with it. The Google servers went all “wonky” the other night and were throwing up erroneous “violation of terms” messages to random users.

    3.9 will change this back & fix the problem, but that is a few days away.

    In the meantime edit slp-adminui_mapsettings_class.php around line 524 (in get_map_domains()) and change this:
    __(‘United States’ ,’csa-slplus’)=>’maps.googleapis.com’,
    to this
    __(‘United States’ ,’csa-slplus’)=>’maps.google.com’,

    For those that are not code hacks, 3.9 will fix it. You can always go back to 3.8.18 with the “Developer” tag on this page. Download the zip, deactivate slp (your settings/data will remain), delete slp, add new plugin & upload the 3.8.18 zip, re-activate.

    EDIT: Had the same problem and changing the code didn’t seem to do the trick, but 1/2 hour later it’s working… go figure.

    Plugin Author Lance Cleveland

    (@charlestonsw)

    The cache needs to clear. Shift + reload from the browser window can help.

    JMH Design

    (@jmhdesign)

    All together – great plugin! However, I also made your suggested update to the file slp-adminui_mapsettings_class.php to no avail after cleaning my cache and everything. I even tested in a clean browser (no cookies, history, cache, etc). Just curious.. when do you expect version 3.9 to be released? Thanks much!

    Plugin Author Lance Cleveland

    (@charlestonsw)

    3.9 is in testing… soon… maybe tomorrow if all goes well.

    JMH Design

    (@jmhdesign)

    Hi there, I upgraded to version 3.9, and am still experiencing the same issue. Was this corrected in version 3.9?

    Plugin Author Lance Cleveland

    (@charlestonsw)

    Should have been. The directions link should be maps.google.com for US-based maps. Are you seeing something different?

    JMH Design

    (@jmhdesign)

    Odd – I even completely removed and re-installed the plugin and I’m still getting maps.googleapis.com/… after clearing cache, refreshing, etc. Interestingly, I’m looking in the file slp-adminui_mapsettings_class.php and it seems that you have fixed the URL to point to maps.google.com. Not sure what’s happening.

    Plugin Author Lance Cleveland

    (@charlestonsw)

    Hmm… let me look at it closer. It shouldn’t be pulling from the geocode API address but maybe I screwed up the URLs somehow.

    JMH Design

    (@jmhdesign)

    That would be tremendous of you! 🙂

    haysuess

    (@haysuess)

    The same thing is happening for me. First I manually changed the code like you said, then I updated to 3.9. I cleared caches, used different computers, etc.

    I have no clue where it’s pulling maps.googleapis.com from, just like JMH design…is it stored in the database somewhere and pulling from there?

    haysuess

    (@haysuess)

    Yep, that was it. The plugin stored maps.googleapis.com under sl_google_map_domain inside the wp_options table. Hope that helps.

    Plugin Author Lance Cleveland

    (@charlestonsw)

    @haysuess – Good catch I will go dig that out squash that bug in a SLP 3.9.1 update.

    Plugin Author Lance Cleveland

    (@charlestonsw)

    The problem is with anyone that updated to the prior version where the direction link was set. The quick fix:

    Go to Map Setting, change the setting under “Map / Country” for “Map Domain” to something different. Save. Change it back to “United States”. Save.

    Version 3.9.1 will fix incorrect maps.googleapis.com settings automatically.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Directions link returns 404 error’ is closed to new replies.