InvalidValueError: not an instance of HTMLInputElement Google Map error

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 4 years, 10 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #526879

    onyejegbue
    Free User
    Post count: 3

    Hello house,
    this plugin has been wonderful, the only plugin to integrate superbly with my theme.
    am running an events management theme that calls google map API.

    My API is set up correctly with billing.

    But i get this error: This page can’t load Google Maps correctly. each time i want to add a location on both the Geodirectory plugin and My event listing theme.

    on the Geodirectory add listing page when i look at the console i see this error: InvalidValueError: not an instance of HTMLInputElement.

    on my theme’s create events page i get this errors: You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
    and: This API project is not authorized to use this API. Places API error: ApiNotActivatedMapError
    https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error
    (i dont even know why i get the second error because i white-listed my domain.)

    I need your help guys on how to sort this out, if its a conflict or mis-configuration.

    #526880

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    GeoDirectory has some good code in it to allow you to add your API key once and only once to the GD Settings, and then other plugins and themes that are coded the ‘WP Way’ will be able to access the key.

    If the key is added to another plugin and theme, that can result in the error:

    
    
    
    You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
    

    Try removing the key from your theme and see if that fixes it.

    If it doesn’t please share WP Admin and FTP credentials and we will look further into the issue.

    WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:

    FTP Credentials
    FTP Host:
    FTP Port:
    FTP User:
    FTP Password:

    Of note, GD can actually use 2 Google API keys, and one of them, the second ‘geocoding’ key in the advanced settings, should have no restrictions for referrers or it will not work.

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

    #526887

    onyejegbue
    Free User
    Post count: 3
    This reply has been marked as private.
    #527013

    Alex Rollin
    Moderator
    Post count: 27815

    GeoDirectory is not installed

Viewing 4 posts - 1 through 4 (of 4 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