Support

Home Forums Event Espresso Premium Country Pack Not Loading

Country Pack Not Loading

Posted: January 24, 2016 at 7:04 am


MikeC

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


MikeC

January 24, 2016 at 7:06 am

PS. I can see the ee_united_kingdon_states_provinces.php file on the server.


Lorenzo Orlando Caum

  • Support Staff

January 24, 2016 at 6:25 pm

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?


Lorenzo


MikeC

January 25, 2016 at 1:43 am

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,
Mike


Tony

  • Support Staff

January 25, 2016 at 3:42 am

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:

if ($installed) return;

Just comment that out:

//if ($installed) return;

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.


MikeC

January 26, 2016 at 3:50 pm

Thanks, Tony. Will give that a go.

Best regards,

Mike


Tony

  • Support Staff

January 27, 2016 at 4:40 am

Mike, just to note I’ve pushed some updates to the UK state pack available on github here:

https://github.com/eventespresso/ee-packs-states-provinces/blob/master/espresso-united-kingdom-states-provinces-pack/ee_united_kingdom_states_provinces.php

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.


MikeC

January 27, 2016 at 8:53 am

Thanks, Tony. Have uploaded an amended php file and all has loaded as expected.

All the best,

Mike


Tony

  • Support Staff

January 27, 2016 at 9:01 am

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.

Event Espresso