Thread: sql error

Results 1 to 4 of 4
  1. #1

    Default sql error

    Hi
    I just installed the new zencart at 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  3. #3
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default 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:

    Code:
    ALTER TABLE customers_basket_attributes
    ADD products_options_value_text BLOB NULL default NULL
    This should restore your missing field.

  4. #4

    Default Re: sql error

    Thank you very much. That solved my error.

 

 

Similar Threads

  1. v139h DB/SQL Error when using SQL Patch for Add Pages More Info Sidebox addon
    By maperr55 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 5 Mar 2012, 09:32 PM
  2. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  3. Error message 1064 you have an error in your sql syntax
    By honrheart in forum General Questions
    Replies: 1
    Last Post: 11 Sep 2009, 02:38 AM
  4. MySQL Error 1064 You have an error in your SQL syntax;
    By dmm2020 in forum General Questions
    Replies: 2
    Last Post: 22 Feb 2009, 05:02 AM
  5. error message 1064 you have an error in your sql syntax
    By ngsl in forum General Questions
    Replies: 0
    Last Post: 22 Aug 2008, 06:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR