Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Cannot create Attributes

    Using ZC 1.3.9D

    Hi,

    I'm trying to create a number of attributes for a limited number of products.

    However, after typing the Name, selecting the Order and Option Type, I click on "Insert" on the Attributes Controller Page, and I get the following Error,

    1054 Unknown column 'products_options_rows' in 'field list'
    in:
    [insert into products_options (products_options_id, products_options_name, language_id, products_options_sort_order, products_options_type, products_options_images_per_row, products_options_images_style, products_options_rows) values ('1', 'Color', '1', '1', '1', '0', '0', '1' )]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields


    Obviously something is amiss in my database, but I don't know what ?

    Any help would be appreciated.

    Thanks,
    Mike

  2. #2
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: Cannot create Attributes

    Anyone ?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Cannot create Attributes

    Evidently you've damaged the products_options table in your database such that it no longer contains the products_options_rows column. Thus when you try to insert new records it fails with the error message you've quoted.

    A clean new install of Zen Cart does contain that column.

    Why would your database be missing structural things which are built-in to the core of Zen Cart? It's very unlike addons to remove existing structural components, so it suggests that you're doing that yourself.
    .

    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.

  4. #4
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: Cannot create Attributes

    Quote Originally Posted by DrByte View Post
    Evidently you've damaged the products_options table in your database such that it no longer contains the products_options_rows column. Thus when you try to insert new records it fails with the error message you've quoted.

    A clean new install of Zen Cart does contain that column.

    Why would your database be missing structural things which are built-in to the core of Zen Cart? It's very unlike addons to remove existing structural components, so it suggests that you're doing that yourself.
    Hmmm..

    Cant recall every having the need to edit it as such..

    But anywho... I checked the database in my test store and the products_options_rows value is in fact missing, so I re-installed that database which corrected it.

    So I have just re-added that value into my live site under the products_options field, copying the table details (rather than re-installing the db again), and all seems to work ok..

    Thanks Doc..

 

 

Similar Threads

  1. v154 Cannot set attributes. Cannot add anything
    By bearlymakinit in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 28 Apr 2015, 06:32 PM
  2. v150 Cannot Create Categories
    By firstcapitalfirearms in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Dec 2012, 03:49 AM
  3. Cannot create Coupons
    By hllight in forum General Questions
    Replies: 0
    Last Post: 17 Jan 2008, 05:24 PM
  4. Two attributes for one product - cannot add to cart, cannot view cart, etc
    By tqualizer in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Dec 2007, 02:04 AM
  5. Cannot create new customer
    By mpinder in forum Upgrading from 1.3.x to 1.3.9
    Replies: 30
    Last Post: 12 Oct 2007, 04:32 PM

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