Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 5 of 5

Thread: 1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist

  1. #1
    jptechnical
    Guest


    Default 1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist

    in specials.php when adding a new special I get the following error:

    ------------
    1146 - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist

    select customers_group_name, customers_group_id from TABLE_CUSTOMERS_GROUPS order by customers_group_id

    [TEP STOP]
    ------------

    I have recently battled the 1054 errors because of the PHP and MySQL upgrades. I have it working at present, but it took lots of diff'ing to make it work at all. I think it has to do with the price per customer mod, I had to comment this out in other places. I can't find the reference to the database call in the file. My coding skills are little more then hacking something to fit, I don't KNOW php.

    I just need to get this to work for another couple weeks till I finish my upgrade to the newest OSCMax.

    Any ideas how I can fix this, even if it is temporary?

    Thanks!

  2. #2
    osCMax Developer


    1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default Re: 1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist

    Create the customers_groups table. It is missing from your database.

  3. #3
    jptechnical
    Guest


    Default Re: 1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist

    Thanks for getting back to me so quick.

    The table exists, but maybe it is malformed?

    Here is an export from phpmyadmin


    -- Table structure for table `customers_groups`
    --

    CREATE TABLE `customers_groups` (
    `customers_group_id` smallint(5) unsigned NOT NULL default '0',
    `customers_group_name` varchar(32) NOT NULL,
    `customers_group_show_tax` enum('1','0') NOT NULL default '1',
    `customers_group_tax_exempt` enum('0','1') NOT NULL default '0',
    `group_payment_allowed` varchar(255) NOT NULL,
    `group_shipment_allowed` varchar(255) NOT NULL,
    PRIMARY KEY (`customers_group_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

    --
    -- Dumping data for table `customers_groups`
    --

    INSERT INTO `customers_groups` VALUES (0, 'Retail', '1', '0', '', '');
    INSERT INTO `customers_groups` VALUES (1, 'Wholesale', '0', '0', '', '');

    Not sure what "Collation latin1_swedish_ci" means, is that important?


    That tell you anything helpful?

  4. #4
    osCMax Developer


    1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default Re: 1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist

    My mistake. You need to add the constant TABLE_CUSTOMERS_GROUPS to your database_tables.php file. All of these need to be present:

    Code:
    // BOF: MOD - Separate Pricing per Customer
      define('TABLE_PRODUCTS_GROUPS', 'products_groups');
      define('TABLE_SPECIALS_RETAIL_PRICES', 'specials_retail_prices');
      define('TABLE_PRODUCTS_GROUP_PRICES', 'products_group_prices_cg_');
      define('TABLE_CUSTOMERS_GROUPS', 'customers_groups');

  5. #5
    jptechnical
    Guest


    Default Re: 1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist

    Genius!

    Thanks a bunch.

Similar Threads

  1. osCMax 2_RC3 - Table 'max23.configuration' doesn't exist
    By fuzzyphil in forum osCmax v2 Installation issues
    Replies: 15
    Last Post: 08-06-2006, 03:43 PM
  2. 1030 - Got error 28 from table handler
    By needatoner in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 05-27-2006, 09:01 AM
  3. Syntax error for specials page
    By amandabuild in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 11-15-2005, 07:04 AM
  4. Error: Catalog images directory does not exist: catalog/imag
    By Korsh in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-26-2003, 08:31 PM
  5. Error message 1146 table does not exist
    By rnomis in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 11-13-2003, 07:17 AM

Bookmarks

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
  •