osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-22-2007, 02:15 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 05-22-2007, 05:52 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,749
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

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 User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-22-2007, 05:59 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 05-22-2007, 06:11 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,749
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

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 User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 05-22-2007, 09:14 PM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
Default Re: 1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist

Genius!

Thanks a bunch.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -8. The time now is 06:50 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design