Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

How do I recover my admin access? 
Jr. Member
Total Posts:  1
Joined:  2012-09-20

My intension was to block visiters from my own country, so I just chose it in configuration in restrict country, which is below the default country tab. Now I can not log into admin panel, even not the store page access is denied.  the error message is as below: Exception printing is disabled by default for security reasons.
My questions is: how can I recover and erase the restriction on countries?

Thank you very much.


Magento Community Magento Community
Magento Community
Magento Community
Total Posts:  1848
Joined:  2009-06-04

These configuration entries are stored in the core_config_data table with the following paths: general/country/allow and general/country/default

For example if you decided to exclude US for a default country of US, it would look something like the following:

general/country/default US


Supposing that there is an error in the logic that causes Magento to die because the default country (bad error handling) isn’t in the allowed country list, use phpMyAdmin to set the following:

general/country/default US

general/country/allow US

And recover from there.

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top