ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Simple Commerce: Add new product fails with db error

September 28, 2011 11:48am

Subscribe [3]
  • #1 / Sep 28, 2011 11:48am

    wornjacket

    98 posts

    Upgraded a 1.* to v2.2.2 - Build: date 20110801

    Just now we’ve tried adding a new item into Simple Commerce and received the following error:

    A Database Error Occurred
    
    Error Number: 1054
    
    Unknown column 'member_group_unsubscribe' in 'field list'
    
    INSERT INTO `exp_simple_commerce_items` (`entry_id`, `item_enabled`, `item_regular_price`, `item_sale_price`, `item_use_sale`, `subscription_frequency`, `subscription_frequency_unit`, `new_member_group`, `admin_email_address`, `admin_email_template`, `customer_email_template`, `recurring`, `admin_email_template_unsubscribe`, `customer_email_template_unsubscribe`, `member_group_unsubscribe`) VALUES ('289', 'y', '249.00', '97.00', 'y', NULL, 'day', '0', '', '0', '0', 'n', '0', '0', '0')
    
    Filename: modules/simple_commerce/mcp.simple_commerce.php
    
    Line Number: 475

    I’m only guessing but I don’t think the table was properly upgraded. I *would uninstall the module and re-install it if I knew I wouldn’t lose all my products etc.

    Thoughts?

     

  • #2 / Sep 29, 2011 2:50am

    John Henry Donovan

    12339 posts

    Hi Brandon,

    For a bit of background. Did you already have entries associated with the Simple Commerce Module in your EE1.x version or are you just starting to use SCM now you are on EE2.2x?

    Can you head to Tool -> Data -> MySql Manager and open the Database Query Form please?

    In it could you type and submit the following

    DESCRIBE exp_simple_commerce_items

    Can you then take a screenshot and post it back here in a reply please?

  • #3 / Sep 29, 2011 10:14am

    wornjacket

    98 posts

    Hey John,

    We already had entries associated with the SCM from version EE1.
    It appears that the upgrade didn’t upgrade the tables for SCM, I manually created the missing column with int(8) and this seems to fix the issue, but this may be a bug that needs to be submitted.

  • #4 / Sep 30, 2011 10:26pm

    Dan Decker

    7338 posts

    brandonrichards,

    Thanks for letting us know you are all set. If you need assistance in the future, please feel free to start a new thread.

  • #5 / Sep 30, 2011 10:26pm

    Dan Decker

    7338 posts

    resolved

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases