On that site the city fields are supposed to autocomplete but something in the code below is not allowing it. I have WP GeoNames v1.8 installed and US MX and CA are loaded.
My Code is
// Initialize city autocomplete
$(".city-autocomplete").each(function() {
var countries = $(this).data("countries");
$(this).wpGeonamesAutocomplete({
countries: countries
});
This is the error I am getting.
jquery-migrate.min.js?ver=3.4.0:2 JQMIGRATE: Migrate is installed, version 3.4.0
jquery.min.js?ver=3.6.4:2 jQuery.Deferred exception: $(…).wpGeonamesAutocomplete is not a function TypeError: $(…).wpGeonamesAutocomplete is not a function
at HTMLInputElement. (https://travelvex.com/business-travel/:343:25)
at Function.each (https://travelvex.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.4:2:3003)
at e..each (https://travelvex.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.4:2:1481)
at HTMLDocument. (https://travelvex.com/business-travel/:341:34)
at e (https://travelvex.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.4:2:30158)
at t (https://travelvex.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.4:2:30460) undefined
S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.4:2
t @ jquery.min.js?ver=3.6.4:2
setTimeout (async)
(anonymous) @ jquery.min.js?ver=3.6.4:2
c @ jquery.min.js?ver=3.6.4:2
add @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery-migrate.min.js?ver=3.4.0:2
e. @ jquery-migrate.min.js?ver=3.4.0:2
then @ jquery.min.js?ver=3.6.4:2
S.fn.ready @ jquery.min.js?ver=3.6.4:2
showFields @ (index):335
onchange @ (index):202
trigger @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery.min.js?ver=3.6.4:2
each @ jquery.min.js?ver=3.6.4:2
each @ jquery.min.js?ver=3.6.4:2
trigger @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery.nice-select.min.js?ver=1.0:4
dispatch @ jquery.min.js?ver=3.6.4:2
y.handle @ jquery.min.js?ver=3.6.4:2
jquery.min.js?ver=3.6.4:2 Uncaught TypeError: $(…).wpGeonamesAutocomplete is not a function
at HTMLInputElement. ((index):343:25)
at Function.each (jquery.min.js?ver=3.6.4:2:3003)
at e..each (jquery.min.js?ver=3.6.4:2:1481)
at HTMLDocument. ((index):341:34)
at e (jquery.min.js?ver=3.6.4:2:30158)
at t (jquery.min.js?ver=3.6.4:2:30460)
(anonymous) @ (index):343
each @ jquery.min.js?ver=3.6.4:2
each @ jquery.min.js?ver=3.6.4:2
(anonymous) @ (index):341
e @ jquery.min.js?ver=3.6.4:2
t @ jquery.min.js?ver=3.6.4:2
setTimeout (async)
S.readyException @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery.min.js?ver=3.6.4:2
e @ jquery.min.js?ver=3.6.4:2
t @ jquery.min.js?ver=3.6.4:2
setTimeout (async)
(anonymous) @ jquery.min.js?ver=3.6.4:2
c @ jquery.min.js?ver=3.6.4:2
fireWith @ jquery.min.js?ver=3.6.4:2
fire @ jquery.min.js?ver=3.6.4:2
c @ jquery.min.js?ver=3.6.4:2
fireWith @ jquery.min.js?ver=3.6.4:2
t @ jquery.min.js?ver=3.6.4:2
setTimeout (async)
(anonymous) @ jquery.min.js?ver=3.6.4:2
c @ jquery.min.js?ver=3.6.4:2
add @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery-migrate.min.js?ver=3.4.0:2
e. @ jquery-migrate.min.js?ver=3.4.0:2
then @ jquery.min.js?ver=3.6.4:2
S.fn.ready @ jquery.min.js?ver=3.6.4:2
showFields @ (index):335
onchange @ (index):202
trigger @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery.min.js?ver=3.6.4:2
each @ jquery.min.js?ver=3.6.4:2
each @ jquery.min.js?ver=3.6.4:2
trigger @ jquery.min.js?ver=3.6.4:2
(anonymous) @ jquery.nice-select.min.js?ver=1.0:4
dispatch @ jquery.min.js?ver=3.6.4:2
y.handle @ jquery.min.js?ver=3.6.4:2
]]>
I have installed Reconte and the sample user data.
I’m trying to add the Geo data as instructed from the instalation tutorial but the number of data imported are always 0.
I asked my server to enable reading the gzip files and said that is by default enabled.
Is there something else I could do?
]]>I wanted this for Rencontre but over night were only some post codes loaded, nothing more.
Doe’s this plugin should work still with Rencontre?
Hello everyone,
I am trying to import data into geonames.
I select the country and click on add.
Then it pretends to import data but the database remains empty.
Display is Number of data in this database : 0
When I look in the database, I see that geonames and geonamesPostal are empty.
Here is a screenshot of what I see
https://prnt.sc/11qsvs6
Am I doing something wrong or what is going wrong?
]]>
It’s such a nice plugin the only things that’s missing is the possibility to search buddypress Profiles by distance / proximity. I hope this might be included in a follow up version or a pro version.
]]>Hello,
I get the error message “Error downloading the zip file”. How can I find the error. Is there a test page or diagnosis?
Best Regards
FX
WP GeoNames v1.7
WordPress 5.3.2
Hello,
When you import the US.zip file West Virginia is not being imported as state ( feature_class = ‘A’ and feature_code = ‘ADM1’ )
You will get only 50 ‘states’ instead of 51 (DC being actually accounted as a state because feature_class = ‘A’ and feature_code = ‘ADM1’, and no WV)
The main concern here is that if there is a problem for that row (WV) it may be more problems that I haven’t noticed yet and ending up with an incomplete dataset.
thank you for checking it out.
]]>Hi
I try to add the database to my theme’s core ad location part
The theme i use has build in plugin and ad location part
How can i import the database to that taxomony?
Since it needs to be done in back office the shortcodes do not work
Thanks in advance
Regards
Hi Jacques,
I am trying to find information on creating an ACF (Advanced Custom Fields) field, based on your data, to use in my custom post types.
.. or just to create a hierarchical taxonomy based on Country / Region / City.
I am plying with the shortcode function you have – https://travelmy.city/geo/, but I don’t understand how to get that either into ACF, or Taxonomies with the relationship in tact.
I have several custom post types, and want to link it all to a main geo structure.
Any help would be much appreciated.
Best
Graeme
]]>Hello, I have a property site where I must input all cities of each country as a category. can I bulk do this with your plugin?
thx
Thx for add postalcodes in the new update.
i added the postalcodes now but in userprofile i cant find any field.
thx for help
I have a wordpress installation as a subdomain, so the path to the plugin, for example, would be like this:
~/www/amandawiebe.com/wp-content/plugins/wp-geonames
I tried to install CA.zip, including tying to do it using a local CA.zip file in:
~/www/amandawiebe.com/wp-content/uploads/tmp
And it fails.
]]>hi there,
thanks for this amazing plugin.
1. is it possible to make it search my buddypress profiles after i click on the city rather than display the map, or would be better if we can add a “Search” button and then it starts searching?
2. is it possible to make the “City” field as a drop down, the same like the “Country” and “Region”?
thanks!
]]>on the geonames website there are free postal codes for ervery country. is that possible to add?
]]>Hi. I’m trying to add US.zip (for the United States) to the plugin, but it never works. It just keeps spinning and spinning. I tried adding Australia, and that did work. Please help. Thanks.
]]>hi, is it possible to enable exact location (street) or only cities?
im using this plugin on a dating site, but user can only edit a city and cannot move the marker on map.
The plugin is not uploading the ZIP databases.
]]>Hi,
After update plugin I have error 500 and this Fatal PHP error :
PHP Fatal error: Can’t use function return value in write context in /home/xxx/public_html/wp-content/plugins/wp-geonames/wp-geonames.php on line 713
Thanks to resolve ASAP the problem ??
Sebastien
]]>/wp-admin/options-general.php?page=wpGeonames-options I tried us.zip and allcountries.zip
both not working.
A blank page or white page error!!!!!!!
I tried all these steps
https://premium.wpmudev.org/blog/increase-memory-limit/
Please help!
I encounter the following error messages with Geoname:
Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/clients/7253dd2b4f1fdb75d848de8442e9a7a6/web/wp-content/plugins/wp-geonames/wp-geonames.php on line 87
Warning: file_get_contents(https://download.geonames.org/export/dump/): failed to open stream: no suitable wrapper could be found in /home/clients/7253dd2b4f1fdb75d848de8442e9a7a6/web/wp-content/plugins/wp-geonames/wp-geonames.php on line 87
Thank you for your help.
]]>Hi,
WP GeoNames does not install correctly.
1. I uploaded and installed zip file
2. I installed it with Plugins
Both ways it does not work and I get error message below:
Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /var/www/web229/html/datinghawk.com/wp-content/plugins/wp-geonames/wp-geonames.php on line 8
I need it to use with RENCONTRE.
Do I really need GEONAMES?
Please help…
Mercy beaucoup.
]]>Hi Jacques Malgrange,
ur plugin is very cool, just a small question, how it does daily update? because the Geonames will generate new files everyday.
]]>Hello Jacques,
After installing WP GeoNames and updating the database with US cities etc, the wp-admin page is not loading but is redirecting to the homepage instead.
I use the latest WP version with plugins: Rencentre, Yoast, Jetpack, Responsive notification bar, Widget importer/exporter, WordPress importer.
I deactivated all plugins. After activating one by one, in the following order: Jetpack, Rencentre, Yoast, WP Geonames, the admin site redirected me again to the homepage.
Disabling WP Geonames again fixed it.
So, there is a bug.. ??
]]>i’m using a wp directory theme
this theme creates a “Locations” taxonomy(?) for users to add their listing to my site
this “Locations” list is not the same as their full street address
rather, these “Locations” are added manually by admin and can be hierarchical, for example:
Country > State > City
on the Locations page, first you would display a table of Countries
then click the desired country
then on the next page you would see a list of States within that country
then click the desired State
then you would see a list of Cities within that State
would it be possible to add a Country/State/City set of data to the tables that this directory theme uses to display “Locations” ?
this would be more than unbelievably helpful if possible, how could it be done?
thanks ??
]]>