Forums / General Questions / error of sessions table after I added more columns to it

error of sessions table after I added more columns to it

Locked

Views: 515

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
26 Aug 2009, 1:18 PM
#1
ajaysingh avatar

ajaysingh

New Zenner

Join Date:
Jul 2009
Posts:
18
Plugin Contributions:
0

error of sessions table after I added more columns to it

I am facing this error -

1136 Column count doesn't match value count at row 1
in:
[insert into sessions values ('93a3e60394e1ba7edc3b8daa9a57308c', '1251293276', 'securityToken|s:32:"cb8d5cc6a2a770a05c41aabb3ece6481";customers_host_address|s:9:"localhost";cartID|s:0:"";cart|O:12:"shoppingCart":8:{s:8:"contents";a:0:{}s:5:"total";i:0;s:6:"weight";i:0;s:12:"content_type";b:0;s:18:"free_shipping_item";i:0;s:20:"free_shipping_weight";i:0;s:19:"free_shipping_price";i:0;s:9:"observers";a:0:{}}navigation|O:17:"navigationHistory":3:{s:4:"path";a:1:{i:0;a:4:{s:4:"page";s:5:"index";s:4:"mode";s:6:"NONSSL";s:3:"get";s:0:"";s:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}s:9:"observers";a:0:{}}check_valid|s:4:"true";language|s:7:"english";languages_id|s:1:"1";languages_code|s:2:"en";currency|s:3:"USD";today_is|s:10:"2009-08-26";updateExpirations|b:1;session_counter|b:1;customers_ip_address|s:9:"127.0.0.1";')]

Due to this I can't add the products in my cart. I've add a new field named site_id in all tables.
can anyone tell where this session makes and inserts the table data ?

Thanks in advance

26 Aug 2009, 6:18 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: error of sessions table after I added more columns to it

ajaysingh:

I've add a new field named site_id in all tables.
That'll be your problem.
Why are you editing all tables' structures?

.
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.