Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,556
    Plugin Contributions
    28

    Default 1170 BLOB/TEXT column - error

    I'm upgrading my DB from 1.2.7 to 1.3.0 and got this error. I'm not sure how to fix it.

    1170 BLOB/TEXT column 'products_options_values_name' used in key specification without a key length
    in:
    [ALTER TABLE zen_products_options_values ADD INDEX idx_products_options_values_name_zen (products_options_values_name);]

  2. #2
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,556
    Plugin Contributions
    28

    Default Re: 1170 BLOB/TEXT column - error

    I went back and clicked on recheck and it worked and finished the upgrade. I can't explain it, but it seems to be okay now.

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

    Default Re: 1170 BLOB/TEXT column - error

    You must have changed your products_options_name field from the default varchar(64) to blob type.

    To keep it as a blob and have the upgrader not croak, you'll need to edit line 63 of the mysql_upgrade_zencart_1302_to_135.sql file from this:
    Code:
    ALTER TABLE products_options_values ADD INDEX idx_products_options_values_name_zen (products_options_values_name);
    to this:
    Code:
    ALTER TABLE products_options_values ADD INDEX idx_products_options_values_name_zen (products_options_values_name(50));
    ... and then resume upgrading starting with the 1302-to-135 step
    .

    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.

 

 

Similar Threads

  1. v150 install error wont pass the database: PHP Fatal error: 1101:BLOB/TEXT
    By tparmley2001 in forum Installing on a Windows Server
    Replies: 9
    Last Post: 6 Aug 2012, 04:22 AM
  2. SQL #1170 error
    By littlehawk in forum General Questions
    Replies: 2
    Last Post: 12 Aug 2009, 06:04 AM
  3. Setting an image column and text column in Product Info page?
    By monkeypeach in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Sep 2008, 04:19 AM
  4. BLOB/TEXT column 'products_options_values' can't have a default value ??
    By quantumfusion in forum Installing on a Windows Server
    Replies: 16
    Last Post: 26 Jan 2008, 01:40 AM
  5. 1101 BLOB/TEXT column can't have a default value
    By tkroh in forum Installing on a Windows Server
    Replies: 3
    Last Post: 27 Dec 2006, 10:28 PM

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