osCmax v2.5 User Manual
Results 1 to 5 of 5

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

This is a discussion on 1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; in specials.php when adding a new special I get the following error: ------------ 1146 - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist select ...

      
  1. #1
    New Member
    Join Date
    Jan 2004
    Posts
    26
    Rep Power
    0


    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

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    26
    Rep Power
    0


    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

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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');
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Jan 2004
    Posts
    26
    Rep Power
    0


    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, 06: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, 07: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, 06:17 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
  •