Vheissu / acf-country-field

A country, city and state field for Advanced Custom Fields v4 & ACF Pro
GNU General Public License v2.0
36 stars 11 forks source link

Lots of issues... #7

Open yaronguez opened 9 years ago

yaronguez commented 9 years ago

Hi thanks for creating this plugin! It looks very useful. Unfortunately I can't get it to work properly. Selecting a country from the dropdown list results in a script timeout and Firefox warning implying that an asynchronous call isn't working properly. I have 16gb of RAM and tried from a fresh load of Firefox so performance isn't an issue. When I ignore the warning and wait it out, the state field is still loaded even though United States isn't selected. Furthermore, the state list was filled with duplicates. Also, when running local in debug mode I received parse errors related to acf-COUNTRY_FIELD-v4.php because you're calling add_action directly in the class rather than in the class constructor using this syntax: add_action('wp_ajax_get_country_cities', array($this,'get_country_cities'));