Jump to content
Sign in to follow this  
gkrehbiel

1054 - Unknown column 'agent' in 'field list'

Recommended Posts

The complete error message follows.

 

1054 - Unknown column 'agent' in 'field list'

 

INSERT INTO `supertracker` (`ip_address`, `browser_string`, `country_code`, `country_name`, `referrer`,`referrer_query_string`,`landing_page`,`exit_page`,`time_arrived`,`last_click`, `agent`) VALUES ('71.191.73.43','Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12','us', 'United States', 'http://crowhill.net/osCommerce/catalog/admin/stats_products_purchased.php', 'selected_box=reports&osCAdminID=59a9aa3e4ebaec60d45a3746822fac59','/osCommerce/catalog/','/osCommerce/catalog/index.php','2008-02-10 12:36:23','2008-02-10 12:36:23','')

 

[TEP STOP]

 

 

How do I fix this?

 

Thanks,

 

Greg

Share this post


Link to post
Share on other sites

The real question is what step in the installation of a contribution was missed out.

 

I would guess the sql to update the db was not run.


Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Share this post


Link to post
Share on other sites
I would guess the sql to update the db was not run.

 

No, I ran it. If I hadn't, it wouldn't be a matter of one field missing. There wouldn't have been a table at all.

 

The file supertracker_setup_db.php doesn't have a line to add the field "agent" into the supertracker table.

 

I should note that I also installed salestracker, so it's possible the problem is the interaction between those two add-ons.

Share this post


Link to post
Share on other sites
No, I ran it. If I hadn't, it wouldn't be a matter of one field missing. There wouldn't have been a table at all.

 

The file supertracker_setup_db.php doesn't have a line to add the field "agent" into the supertracker table.

 

I should note that I also installed salestracker, so it's possible the problem is the interaction between those two add-ons.

 

Can you tell a newbie exactly what you added? Ta :)

 

(oh, and how!)

Share this post


Link to post
Share on other sites

You need to update Supertracker table:

 

ALTER TABLE `supertracker` ADD `agent` VARCHAR(255) NULL;

This resolved the issue for me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×