zip code doesn't work

New home Forums Pro Add-on Troubleshooting zip code doesn't work

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #28007
    artotal
    Member

    Hi,
    my zip code doesn’t work?

    the map:
    https://freshdentalplan.com/#map-dentist

    each time I click on the search I have this error trigger by the map:

    core.js?ver=5.73p:236 Uncaught TypeError: Cannot read property ‘match’ of undefined
    at searchLocations (core.js?ver=5.73p:236)
    at HTMLInputElement.onclick (VM1597 ?wpgmza_distance_type=1:761)

    In same time I dequeue your library:

    //dequeue css from plugins
    add_action('wp_print_styles', __NAMESPACE__ .'\\mytheme_dequeue_css_from_plugins', 100);
    function mytheme_dequeue_css_from_plugins()  {
       wp_dequeue_style( 'fontawesome' );
       wp_dequeue_style( 'wpgmaps-admin-style' );
       wp_dequeue_style( 'membermouse-font-awesome' );
       wp_dequeue_style( 'gform_font_awesome' );
       wp_dequeue_style( 'owl_carousel_style' );
       wp_dequeue_style( 'owl_carousel_style_theme_select' );
    }
    • This topic was modified 6 years, 3 months ago by artotal.
    • This topic was modified 6 years, 3 months ago by artotal.
    #28012
    SupportTeam
    Moderator

    Hi there,

    Thank you for getting in touch with us on this.

    Can you please tell me what versions of the plugin you are using on your site at the moment and if you are using any caching plugins?

    Can you please tell me if you have modified the plugin code on your site?

    Can you please try to deactivate the Basic and Pro and then reactivate and see if this helps the issue on your site?

    Can you please send me the ZIP code you are trying to search for so I can try to replicate this on my side?

    Thank you for your time in this matter.

    #28017
    Perry
    Moderator

    Hi Artotal, Hi Nathan,

    This issue is caused by the plugin recognising the zip code as the start of at latitude/longitude pair and trying to parse it as such,

    I’ve fixed this in the latest version, if you could please update the plugin to 6.4.05 through your plugins menu, that will resolve the issue.

    Kind regards

    #28165
    djjones101
    Member

    Hi,

    We have the same issue and we are running version 6.4.05.

    http://dev.embraceliving.org/greencastle-communities/ has the error. We have 4 maps on the site with the similar errors. It appears we can use the city or state search… but when a zip is entered it does nothing

    Thanks,
    Dan

    #28166
    artotal
    Member

    I have the version: 6.4.05 and Pro addon Version 5.73
    he definitely doesn’t work this plugin -:(

    I didn’t change the plugin code.

    After one seach by the city, the gallery Owl diapear too.

    #28183
    SupportTeam
    Moderator

    Hi there,

    Jarek here from the Development Team.

    I’ve just tested your site and try to add Dallas ZIP code 75220. It seems that this works as intended. Could you send me the ZIP code you are trying to find?

    The owl carousel might disappears because when it only shows up the markers which are located in this search radius. If there are no markers in seach location there is no markers in Owl carousel.

    Hope that helps. Feel free to reach out if you need anything.

    Kind regards

    #28190
    djjones101
    Member

    Hi,

    We are trying 63139. However, no zip code is currently working on the site.

    We are also getting this error….

    “This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console:”

    However, all other map items work and it is authorized in the API and saved in the settings.

    Thanks,

    Dan

    #28523
    Perry
    Moderator

    Hi Dan,

    I beg your pardon, I believed this was solved in the latest version but a quick glance reveals that is not the case

    I’ve raised this issue for the next release, sorry for any inconvenience caused. If in the mean time you would like to apply a patch yourself, you can open /wp-content/plugins/wp-google-maps-pro/js/core.js and go to line 276 where the code reads

    if ((wpgm_lat.match(/[a-zA-Z]/g) === null && wpgm_lng.match(/[a-zA-Z]/g) === null) && checker.length === 2 && (checker1 != NaN && (checker1 <= 90 || checker1 >= -90)) && (checker2 != NaN && (checker2 <= 90 || checker2 >= -90))) {

    And change this to

    if ((wpgm_lat.match(/[a-zA-Z]/g) === null && wpgm_lng && wpgm_lng.match(/[a-zA-Z]/g) === null) && checker.length === 2 && (checker1 != NaN && (checker1 <= 90 || checker1 >= -90)) && (checker2 != NaN && (checker2 <= 90 || checker2 >= -90))) {

    If you do apply these changes, please confirm that works for you?

    Kind regards
    – Perry

    • This reply was modified 6 years, 2 months ago by Perry.
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.