Posted: January 24, 2016 at 7:04 am
Hi All, I’ve previously loaded the UK counties into EE4 Decaf when testing things out but now I’m trying to set up EE4 and it doesn’t seem to like this particular pack. Can upload other countries so not sure why it’s not picking up the UK details? Any ideas on how to get these set up (short of typing them all in!) would be great. Thanks, Mike |
|
PS. I can see the ee_united_kingdon_states_provinces.php file on the server. |
|
Hello Mike, The pack loads them once. It won’t load them multiple times. Was it previously loaded under Event Espresso 4 decaf? Also, are you trying to load it again because there is some missing information? — |
|
Hi Lorenzo, The information isn’t showing any more. I cleared down the previous installs using the “Delete data” and “Reset Tables” options to get things working but, alas, it seems I can’t reload the country pack. Thanks, |
|
The state pack add an option to the DB on activation and then uses that to check if it has previously been installed, currently the EE Delete Data tab will not reset the option used for the state pack so it still thinks it has been installed previously. You can edit the DB to remove the option added manually however if you are comfortable with PHP the easiest option is to do a small edit to the state pack file to skip the option check and allow the query to run. If you’ve reset the EE tables since the first time the plugin was activated this won’t cause any problems but first create a backup of your Database, just to be safe. There are multiple plugins you can use for this (or through your hosts control panel) here is one I use: https://en-gb.wordpress.org/plugins/backupwordpress/ De-activate the UK statepack and edit the ee_united_kingdon_states_provinces.php file, you’ll find:
Just comment that out:
Re-activate the state pack and it will update the Database. De-activate the statepack again and remove the above comment. If you don’t you’ll end up with multiple UK ‘states’ being added to the DB. |
|
Thanks, Tony. Will give that a go. Best regards, Mike |
|
Mike, just to note I’ve pushed some updates to the UK state pack available on github here: The counties have been updated and the UK should automatically be enabled within the dropdowns when you activate the state pack rather than you needed to do this manually. You don’t need to use this pack if you are happy with the current one you have, I just wanted to let you know. |
|
Thanks, Tony. Have uploaded an amended php file and all has loaded as expected. All the best, Mike |
|
Great, thanks for letting me know it worked 🙂 Have a great day. |
|
The support post ‘Country Pack Not Loading’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.