Zen Cart Logo
Forums / All Other Contributions/Addons / 1146 Table 'ncb.ncb_customers' doesn't exist

1146 Table 'ncb.ncb_customers' doesn't exist

Locked

Views: 1,905

Results 1 to 20 of 25
This thread is locked. New replies are disabled.
28 Feb 2011, 4:56 PM
#1
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

1146 Table 'ncb.ncb_customers' doesn't exist

Hello,

I see a lot of similar "1146" error posts, however I couldn't find one to answer my question. For an unknown reason, my create account/login page is formatted very strangely, and more importantly, comes back with:

"1146 Table 'ncb.ncb_customers' doesn't exist
in:
[select count(*) as total from ncb_customers where customers_email_address = '']"

This error notice is also on the main page in the admin, as well as it appears when you click submit under 'contact us'. I don't recall messing with any tables or doing anything that would cause this (the closest thing I was working on was the discount_coupon page). And furthermore I am such a novice that any fix is not easy for me.

Any direction would be greatly appreciated! I don't understand how this error came about!

naturalcupboard.com

Thanks for any help you can provide :)

28 Feb 2011, 5:05 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

Theg,
did you install the newsletter-subscribe module

28 Feb 2011, 5:35 PM
#3
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

Not the Newsletter Subscribe, but I did install the Newsletter Discount one, I just deleted all the components of that one just in case and the error still comes up.

28 Feb 2011, 6:50 PM
#4
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

Also I'm not sure why the title of this post is now "...confused -Newsletter Discount" It was originally "...confused because I didn't edit any tables in phpmyadmin" or something like that, sorry!

28 Feb 2011, 7:16 PM
#5
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

Hello, I'm not sure what I did to cause these errors, but basically I see a 1146 table doesn't exist error when I log in to the admin, and also it comes up on the website if a customer tries to create an account or contact us after clicking the submit button. I have restored all the backup files of the ones I was editing, at least all I could remember since I was looking at the create_account and contact_us.php pages and may have messed something up? I have no idea.

this is the error in the admin:
1146 Table 'ncb.ncb_customers' doesn't exist
in:
[select count(*) as count from ncb_customers]
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.

and this is the error on the website when customers try to create an account or contact us:
1146 Table 'ncb.ncb_customers' doesn't exist
in:
[select customers_email_format from ncb_customers where customers_email_address= '[email protected]']

I'm also confused because it references tables but I wasn't in phpmyadmin. In fact, I had never even created the hostname for this domain until today.

ANY help would be greatly appreciated!

28 Feb 2011, 7:21 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

'm also confused because it references tables but I wasn't in phpmyadmin
Don't know what you mean by that???

Get into phpmyadmin and see what your tables are prefixed as

ncb_customers

or

ncb.ncb_customers

Thwn check your configure.php files and see what prefix is designated there

28 Feb 2011, 7:22 PM
#7
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,180
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

theg,
Double check all the files you intergrates with the original zen cart files, Use win merge to check if you loaded a file from this mod on top of a core zen cart file.. If so place the original zen file back.. You will have to edit the database and clear out the files that the .sql file loaded if this was done... Or if you had a back up of the database before you uploaded the Newsletter Discount Mod..

28 Feb 2011, 7:31 PM
#9
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,621
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

Moderator's note - similar threads from OP have been merged together

28 Feb 2011, 7:45 PM
#10
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

Sorry for doing similar posts, I accidentally edited the subject of my 1st one and I didn't think i'd get an answer because of it.

My prefix in both configuration files is 'ncb_' and that is the same prefix in phpmyadmin. However there is not a table titled 'ncb_customers' and what I meant about being confused is I had never accessed phpmyadmin for this domain before today and I don't understand how I could have changed the name or location of any tables.

28 Feb 2011, 7:50 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

You apparently have files that are looking for ncb.ncb_customers table and it does not exist
1146 Table 'ncb.ncb_customers' doesn't exist

As this does not appear to be a default file I would look to what and how you have attempted to install the addon Newsletter Discount

28 Feb 2011, 7:59 PM
#12
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

haredo:

theg,
Double check all the files you intergrates with the original zen cart files, Use win merge to check if you loaded a file from this mod on top of a core zen cart file.. If so place the original zen file back.. You will have to edit the database and clear out the files that the .sql file loaded if this was done... Or if you had a back up of the database before you uploaded the Newsletter Discount Mod..

To be honest haredo, I don't fully know how to do all that. I have removed the files added by the newsletter discount feature, and I really don't add or edit much on this site. I was initially trying to offer coupons for local stores and was using the 'create account' and 'contact us' pages as a template for the required field form on the 'discount coupon' page. (You can see my attempt on the local coupons link in the sidebox of the website.)

That, and trying to send coupon codes to all newsletter subscribers upon sign up are the only things I've done, and now the 'contact us' and 'create account' options don't work so I know I messed up something around there...sorry if I don't make much sense, this doesn't make much sense to me!

I have old backups of my entire site...would it be a good idea to just delete includes/modues, includes/templates, and includes/languages and reload them from my backup? Or would that just create a whole new storm of problems??

28 Feb 2011, 8:03 PM
#13
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

kobra:

You apparently have files that are looking for ncb.ncb_customers table and it does not exist
1146 Table 'ncb.ncb_customers' doesn't exist

As this does not appear to be a default file I would look to what and how you have attempted to install the addon Newsletter Discount

All I did was download it from the zencart free addons site and manually drag and drop the docs into the right folder, there was only 3 and I've since removed them. Is that what you meant, and do you think doing it that way caused this issue?

28 Feb 2011, 8:06 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

I have old backups of my entire site...would it be a good idea to just delete includes/modues, includes/templates, and includes/languages and reload them from my backup? Or would that just create a whole new storm of problems??
Reakky depends upon when you made these???

As a matter of rule I always take a file set backup and DB backup just prior to attempting to make any alterations so that I have a fall back position

If your backup was recent to attempting to install the addon then use all of it and not just pieces....

If that addon also had any sql that you ran then you will have to determine how to back it out from your database

28 Feb 2011, 8:30 PM
#15
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

Thanks Kobra, it wasn't too old so I deleted the entire site and uploaded the backup. However the same errors still come up so I'm assuming that means it has some sql I ran or I didn't restore the db? I really don't know much about the database and how to edit it, like I said I hadn't even accessed phpmyadmin for this domain until today.

Where can I find out about sql I may have ran or if I need to do anything with the db?

Thanks for all your help, I'd be lost without you guys! Well, even more lost :)

28 Feb 2011, 8:44 PM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

Look at the addon's files

28 Feb 2011, 9:00 PM
#17
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

I did originally install the 'newsletter discount' under admin-->order total, however that isn't there anymore...other than that it doesn't mention anything about sql or steps like that, just add the three new files to the root.

I'm confused since I restored the backup of my site because the link offering local store coupons in the sidebox is still there even though I only created it a week ago (I think that may be the root cause of this issue somehow), what does that mean? And do you know how I could go about finding the issue? Again, sorry for being such a noob.

naturalcupboard.com

28 Feb 2011, 9:02 PM
#18
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

OK so I got rid of the link it was in EZ pages...which I still don't understand how it was there if I just deleted the site and uploaded a backup because it's not that old.

28 Feb 2011, 9:07 PM
#19
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

OK so I got rid of the link it was in EZ pages...which I still don't understand how it was there if I just deleted the site and uploaded a backup because it's not that old.
So you are all square now??

28 Feb 2011, 9:10 PM
#20
thegolfguru avatar

thegolfguru

New Zenner

Join Date:
Nov 2005
Posts:
68
Plugin Contributions:
0

Re: 1146 Table 'ncb.ncb_customers' doesn't exist

no, sorry. The same table error problem is still there. In admin-->customers and also when you try to create an account or contact us on the website.

I was just saying the local coupons link I referred to is no longer there because I got rid of it.