Forums / General Questions / Error 1054 Unknown column 'countries_active' in 'field list'

Error 1054 Unknown column 'countries_active' in 'field list'

Views: 1,135

Results 1 to 4 of 4
10 Feb 2013, 3:55 PM
#1
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Error 1054 Unknown column 'countries_active' in 'field list'

I installed zencart V1.5.1, After I changed the store country from US to the Netherlands and set the zone to none I'm getting this error even after I reset the country back to us :

1054 Unknown column 'countries_active' in 'field list'
in:
[SELECT countries_active FROM countries WHERE countries_id = '223']

Please Help !

http://www.arab-broker.com/orientalmeal/

10 Feb 2013, 4:26 PM
#2
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Error 1054 Unknown column 'countries_active' in 'field list'

It's back working again ! I don't know how, I didn't do anything it's just got fixed ! probably a problem with the hosting side !

10 Feb 2013, 4:28 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Error 1054 Unknown column 'countries_active' in 'field list'

You installed the "Selectable Countries" plugin and forgot to install the associated SQL patch:

# Selectable Countries Plugin - Install SQL to add the countries_active field to the countries table.
ALTER TABLE countries ADD countries_active char(1) default 1;
10 Feb 2013, 6:55 PM
#4
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Error 1054 Unknown column 'countries_active' in 'field list'

alhakeem2001:

It's back working again ! I don't know how, I didn't do anything it's just got fixed ! probably a problem with the hosting side !

lat9:

You installed the "Selectable Countries" plugin and forgot to install the associated SQL patch:

Selectable Countries Plugin - Install SQL to add the countries_active field to the countries table.

ALTER TABLE countries ADD countries_active char(1) default 1;


I still didn't add any plugins to my zincart! What I did is,  I just changed the location of my store from US to The Netherlands and tried to add a new test customer for testing, But once I click on submit I get this error ! Now It's only fixed after I added that line of sql patch ( you provided ) to my database and it's working now without any problem, SO FAR !!! Thanks :smile: