Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading from 1.3.x to 1.3.9 / 1054 Unknown column 'counter' in 'field list'

1054 Unknown column 'counter' in 'field list'

Locked

Started by greelhound on 28 May 2010, 10:00 AM · Views: 1,275

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 May 2010, 10:00 AM
#1
greelhound avatar

greelhound

New Zenner

Join Date:
May 2010
Posts:
4
Plugin Contributions:
0

Post #1 by greelhound

I'm not 100% sure what I have done here, in between upgrading to the latsest version and also installing a new template I am getting the following error when I go to my site

1054 Unknown column 'counter' in 'field list'
in:
[select startdate, counter, session_counter from counter_history where startdate='20100528']

Help please :smile:

28 May 2010, 10:04 AM
#2
greelhound avatar

greelhound

New Zenner

Join Date:
May 2010
Posts:
4
Plugin Contributions:
0

Post #2 by greelhound

Oh, here is the server info

Zen Cart 1.3.9c
Database Patch Level: 1.3.0.1
v1.3.0.1 [2010-05-28 02:37:45] (Version Update 1.3.0->1.3.0.1)
v1.3.8 [2010-05-28 02:31:07] (Version Update 1.3.7->1.3.8)
v1.3.7 [2010-05-28 02:31:04] (Version Update 1.3.6->1.3.7)
v1.3.6 [2010-05-28 02:31:04] (Version Update 1.3.5->1.3.6)
v1.3.5 [2010-05-28 02:31:03] (Version Update 1.3.0.2->1.3.5)
v1.3.0.2 [2010-05-28 02:30:59] (Version Update 1.3.0.1->1.3.0.2)
v1.3.0.1 [2010-05-28 02:30:58] (Version Update 1.3.0->1.3.0.1)
v1.3.0 [2010-05-28 02:30:58] (Version Update 1.2.7->1.3.0)
v1.2.7 [2010-05-28 02:30:57] (Version Update 1.2.6->1.2.7)
v1.2.6 [2005-12-05 12:40:40] (Fresh Installation)
PHP Version 5.2.8

28 May 2010, 11:27 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #3 by ajeh

This looks like you never upgraded your database to v1.3.9c ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 May 2010, 12:25 PM
#4
greelhound avatar

greelhound

New Zenner

Join Date:
May 2010
Posts:
4
Plugin Contributions:
0

Post #4 by greelhound

Okay, I just redid the upgrade and it is definitely now fully patched and up to date, but as soon as I run the SQL back up I get this error, similar to the one before, but slightly different

Help, I am tearing my hair out here :wacko:

1054 Unknown column 'startdate' in 'field list'
in:
[select startdate, counter, session_counter from counter_history where startdate='20100528']

SERVER INFO NOW IS

Zen Cart 1.3.9c
Database Patch Level: 1.3.9c
v1.3.9c [2010-05-28 05:14:29] (Version Update 1.3.8->1.3.9c)
v1.3.8 [2010-05-28 05:12:07] (Version Update 1.3.7->1.3.8)
v1.3.7 [2010-05-28 05:12:04] (Version Update 1.3.6->1.3.7)
v1.3.6 [2010-05-28 05:12:03] (Version Update 1.3.5->1.3.6)
v1.3.5 [2010-05-28 05:12:03] (Version Update 1.3.0.2->1.3.5)
v1.3.0.2 [2010-05-28 05:12:00] (Version Update 1.3.0.1->1.3.0.2)
v1.3.0.1 [2010-05-28 05:11:59] (Version Update 1.3.0->1.3.0.1)
v1.3.0 [2010-05-28 05:11:59] (Version Update 1.2.7->1.3.0)
v1.2.7 [2010-05-28 05:11:57] (Version Update 1.2.6->1.2.7)
v1.2.6 [2005-12-05 12:40:40] (Fresh Installation)

28 May 2010, 12:33 PM
#5
greelhound avatar

greelhound

New Zenner

Join Date:
May 2010
Posts:
4
Plugin Contributions:
0

Post #5 by greelhound

Hmmm

I just checked the server info again after I ran the back up SQL file and it has reverted to this

Zen Cart 1.3.9c
Database Patch Level: 1.2.6
v1.2.6 [2005-12-05 12:40:40] (Fresh Installation)
v1.2.6 [2005-12-05 12:40:40] (Fresh Installation)

What's going on? The oldest version I have ever installed was 1.3.8

28 May 2010, 2:50 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

Sounds like you're restoring old files(overwriting your database with old data), and not making new backups.

I hope you have an actual backup from before you did all this.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.