New home › Forums › Pro Add-on › Troubleshooting › zip code doesn't work
Tagged: zip code
- This topic has 7 replies, 5 voices, and was last updated 6 years, 2 months ago by Perry.
-
AuthorPosts
-
June 20, 2017 at 6:51 pm #28007artotalMember
Hi,
my zip code doesn’t work?the map:
https://freshdentalplan.com/#map-dentisteach 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.
June 20, 2017 at 9:48 pm #28012SupportTeamModeratorHi 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.
June 21, 2017 at 8:50 am #28017PerryModeratorHi 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
June 27, 2017 at 5:45 pm #28165djjones101MemberHi,
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,
DanJune 27, 2017 at 6:00 pm #28166artotalMemberI 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.
June 28, 2017 at 10:56 am #28183SupportTeamModeratorHi 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
June 28, 2017 at 2:21 pm #28190djjones101MemberHi,
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
July 10, 2017 at 12:38 pm #28523PerryModeratorHi 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.
-
AuthorPosts
- You must be logged in to reply to this topic.