Open Street Map loads for whole database but not for separate listing

This topic contains 50 replies, has 4 voices, and was last updated by  Alex Rollin 6 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #500168

    Steve Shire
    Free User
    Post count: 32

    GD,
    I have gone into Geo Directory under maps and have deslected Google Maps, thus far this is what I have done:
    1. Got a new API Key from Google, set the settings per your instructions in the threads.
    2. Google maps consistently comes up with This page didn’t load Google Maps correctly. See the JavaScript console for technical details.

    Fix-so far but is not working completely
    1. Deleted Google API key, selected open street maps instead
    2. Open street maps loads for the database , however when the specific post is clicked on, the maps do no load (for the single entry) and I still get a message saying This page didn’t load Google Maps correctly. See the JavaScript console for technical details.
    Even though Google API has been deleted
    3. Installed a Clear Cache plugin and have cleared the cache – still not map per each listing

    #500194

    Kor
    Moderator
    Post count: 16516

    Hi Steve Shire,

    Thanks for your post. If you’re using Google Map API key, you need to set up billing as explained here https://developers.google.com/maps/documentation/javascript/get-api-key .

    Ref :https://wpgeodirectory.com/docs-v2/integrations/google/

    #500236

    Steve Shire
    Free User
    Post count: 32

    I already have a billing acct for this, the issue is still there. I did chat online with Google and they said there is something else going on? My question to you since I am a user but do understand code a little bit, does your plugin already have the java code script written? In other words all we have to do as users is insert the API key? I have the map come up on the database, however the same error comes up for individual entries- it won’t load.

    #500274

    Alex Rollin
    Moderator
    Post count: 27815

    You can use the chrome console to see the error that is being thrown by the Google API.

    We can take a look if you can share the URL to that page here in a private reply.

    #500357

    Steve Shire
    Free User
    Post count: 32
    This reply has been marked as private.
    #500393

    Steve Shire
    Free User
    Post count: 32
    This reply has been marked as private.
    #500426

    Alex Rollin
    Moderator
    Post count: 27815

    There are two errors on the page:

    
    
    
    ou have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
    Gh @ js?key=AIzaSyCEwvpVU_EiDKxiwZnHU1zdVQtY4&callback=initMap:124
    js?key=AIzaSyCEwvpVU_EiDKxiwZnHU1zdPFY4&callback=initMap:55 Google Maps JavaScript API error: RefererNotAllowedMapError
    https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
    Your site URL to be authorized: http://crematchup.com/haves/texas/austin/office-condo-for-sale-round-rock-tx/
    _.Uc @ js?key=AIzaSyCEwvpVULVQtY4&callback=initMap:55
    

    Try deactivating other plugins that may be loading google maps tp see if you can get the map working by eliminating plugin conflicts.

    The referrer error can be addressed by first removing the referrer rules to make sure the API key works correctly and then adding in a simple rule like https://mysite.com/*

    About the date, the date field is set automatically with the package purchase or renewal. Yes, that date is used to calculate when renewal listings are sent out. Do you have additional notifications setup? You can turn those off in the email settings. Did I misunderstand?

    If we need to check the settings please share WP Admin credentials in aprivate reply.

    #500437

    Steve Shire
    Free User
    Post count: 32
    This reply has been marked as private.
    #500442

    Steve Shire
    Free User
    Post count: 32

    PS: don’t update GD plugin to V2, it will crash my site.. the site has been customized by my webdesigner and if you update the plugin it will mess up the whole site- FYI thanks.

    #500444

    Alex Rollin
    Moderator
    Post count: 27815

    I am getting invalid username or password.

    #500445

    Steve Shire
    Free User
    Post count: 32

    From Google the error on the Detailed Map not loading is as follows:

    Yes, so far I see that you’re using two API keys in your code. One that is yours, and one that isn’t. The key that is causing issues, isn’t yours. Do you know where the other key might be coming from?

    so the API keys are conflicting

    #500447

    Alex Rollin
    Moderator
    Post count: 27815

    I am getting invalid username or password. Please validate the login details and repost them here if we need to check the settings.

    #500453

    Steve Shire
    Free User
    Post count: 32
    This reply has been marked as private.
    #500464

    Steve Shire
    Free User
    Post count: 32
    This reply has been marked as private.
    #500478

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 51 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount