Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

sql error

Locked

Started by beercan on 19 Jun 2006, 3:25 PM · Views: 1,782

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Jun 2006, 3:25 PM
#1
beercan avatar

beercan

New Zenner

Join Date:
Mar 2004
Posts:
38
Plugin Contributions:
0

sql error

Hi
I just installed the new zencart at https://www.nitrousoxidechargers.com and imported users from and older osc cart. Now on login I get the following error:

1054 Unknown column 'products_options_value_text' in 'field list'
in:
[select products_options_id, products_options_value_id, products_options_value_text from customers_basket_attributes where customers_id = '2' and products_id = '5' order by LPAD(products_options_sort_order,11,"0")]

Can someone point me in the right direction on how to fix this?

Thanks

19 Jun 2006, 3:30 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: sql error

When you imported your data, you didn't update the table-structure for the customers_basket_attributes table.

Check to be sure your Zen Cart tables have all the normal Zen Cart fields/columns in them. You can review this info by editing the zc_install/mysql_zencart.sql file in a text editor, or you can install Zen Cart into another folder+database for comparison.

NOTE: When importing data, you need to make sure you keep all the same destination structure, rather than just copy the old software's data to the new.

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

19 Jun 2006, 3:38 PM
#3
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: sql error

Make a backup of your customers_basket_attributes table from your phpmyadmin.

Then, in your Zen Cart's admin section - > tools - > SQL Patches.

Execute the following SQL statement:

ALTER TABLE customers_basket_attributes
ADD products_options_value_text BLOB NULL default NULL

This should restore your missing field.

19 Jun 2006, 4:07 PM
#4
beercan avatar

beercan

New Zenner

Join Date:
Mar 2004
Posts:
38
Plugin Contributions:
0

Re: sql error

Thank you very much. That solved my error.