Forums / Templates, Stylesheets, Page Layout / All My Categories & Products Have Been Deleted... HELP!

All My Categories & Products Have Been Deleted... HELP!

Locked

Views: 3,018

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
13 May 2008, 2:54 PM
#1
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

All My Categories & Products Have Been Deleted... HELP!

I was adding new products to the back end and the computer crashed and when i reloaded all my categories and products have been deleted. What can i do?

https://www.dpmautostyling.co.uk

13 May 2008, 2:59 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

When you say "back end", what do you mean? Were you performing a SQL command to upload data?

13 May 2008, 3:02 PM
#3
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

I was in the admin backend adding new products.

13 May 2008, 3:18 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All My Categories & Products Have Been Deleted... HELP!

If you look at your database tables for
products
products_description
categories
categories_description
products_to_categories

do you see your data in them?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 May 2008, 3:20 PM
#5
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

Where are the data base tables?

When in the admin/backend if you look in the Catalog - Categories/Products section there's nothing there.

13 May 2008, 3:51 PM
#6
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

Of course, you can always reinstall the database from your last back-up.
You did back-up, right?

13 May 2008, 4:15 PM
#7
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

The database is SEPARATE from the core files.

You will need to login to your host admin account on your server, then use the MySQL function there to access your database.

On a server with C-Panel, this is usually via a program called phpMyAdmin.

13 May 2008, 6:00 PM
#8
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

Getting this message when trying to fix it...

SQL query:
INSERT INTO zen_product_types
VALUES ( 1, 'Product - General', 'product', 1, 'Y', '', '2005-06-14 22:59:11', '2005-06-14 22:59:11' ) , ( 2, 'Product - Music', 'product_music', 1, 'Y', '', '2005-06-14 22:59:11', '2005-06-14 22:59:11' ) , ( 3, 'Document - General', 'document_general', 3, 'N', '', '2005-06-14 22:59:11', '2005-06-14 22:59:11' ) , ( 4, 'Document - Product', 'document_product', 3, 'Y', '', '2005-06-14 22:59:11', '2005-06-14 22:59:11' ) , ( 5, 'Product - Free Shipping', 'product_free_shipping', 1, 'Y', '', '2005-06-14 22:59:11', '2005-06-14 22:59:11' ) ;

MySQL said:
#1062 - Duplicate entry '1' for key 1

Anyone know what it means?

13 May 2008, 6:44 PM
#10
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

Hi! I help out with DPM's site and am trying to sort the problem for...

If you check https://www.dpmautostyling.co.uk you can the problem - the categories are missing. Apparently DPM was in the middle of updating some stuff in the admin and suffered a crash and that is the result. I thought a simple dbase restore would cure the problem but when trying to restore that sql message is encountered. Drop tables and create table are both present in the sql backup.

@ ajeh - yes those tables are all present and contain data
@ bigbadboy - yes daily updates are in place. The sql used was from the last available backup.

In addition when I checked the dbase several tables were in need of repair. These now all report as being OK.

Hope the extra info helps...

13 May 2008, 7:01 PM
#11
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: All My Categories & Products Have Been Deleted... HELP!

Have you checked this backup to make sure everything is there as it should be? You could try manually dropping the tables prior to importing.

Also, I can see your products here (albeit without images):
http://www.dpmautostyling.co.uk/catalogue/products_all.html

13 May 2008, 8:39 PM
#12
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

When in the Admin/Backend and looking at products view, all the products are still there and you can click on them as if you were going to edit them but they're just not in the Catalog-Categories/Products area and hence not up on the site.

I'm going crazy!

13 May 2008, 8:45 PM
#13
kobra avatar

kobra

Black Belt

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

Re: All My Categories & Products Have Been Deleted... HELP!

Looks like a bad file for the side box/categories listing...

Might try switching to the classic template and if your edits have been to override files ONLY this might be a simple template issue

Zen-Venom Get Bitten

13 May 2008, 11:06 PM
#14
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

I've just checked the template and no joy. All edits have been made to override files so answer must lie elsewhere. Thanks for the suggestion though :)

14 May 2008, 2:35 AM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All My Categories & Products Have Been Deleted... HELP!

Could you perhaps check your database via phpMyAdmin and see if you have the tables:
products
products_description
categories
categories_description
products_to_categories

and that they all have data in them and they appear to balance out ...

This means you have 1 Product record in the products and products_description tables ...

And that you have 1 Category record in the categories and categories_description tables ...

There should then be records in the products_to_categories that match up to each product and category ...

Next, check the products table and see if all of the products each have a value other than 0 in the master_categories_id field ...

If the records all match up and the master_categories_id values are 0, then this just needs to be fixed ...

If the master_categories_id are all of a value other than 0 then this could be another issue ... such as bad files ...

Switching to the Classic Template is a good way to tell if this is a template issue causing this ...

If the data in the database appears bad, then having a backup that you can restore would be helpful ...

But so far, there really isn't enough information here to determin the exact nature of the problem ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 May 2008, 5:48 PM
#16
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

Thanks for the advice! I restored the tables from the backup and the products/categories are now visible and bowsable. However, the images are not showiing :(

The images do not show in the default or classic templates. Any ideas? Is there a dbase table I should be checking?

9 Jul 2008, 7:50 AM
#17
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

Re: All My Categories & Products Have Been Deleted... HELP!

Well this has happened again and once again i'm so annoyed! All i was doing was adding new products to the shop in the admin/backend and again the admin froze and when i refreshed all the products and categories have gone, they're not even in the viewed items this time either.

Is it possible for someone to talk me through what to do to restore a backup from the night before this happened?

I can see a list of them in the dump section in my SmartFTP but not really know what to do.

Any help would be gratefully receieved.

11 Nov 2009, 10:55 AM
#18
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: All My Categories & Products Have Been Deleted... HELP!

Ajeh:

Next, check the products table and see if all of the products each have a value other than 0 in the master_categories_id field ...

If the records all match up and the master_categories_id values are 0, then this just needs to be fixed ...

My records say 0 but there is data in the tables, how do I fix this?

categories: Records 0, Size: 7.6 KiB, Overhead: 2.6 KiB
categories_description: Records 0, Size: 33.4 KiB , Overhead: 33.4 KiB
products_description: Records 0, Size: 3.2 MiB, Overhead: 3.2 MiB
products_to_categories: Records 0, Size: 22.4 KiB, Overhead: 4.4 KiB

some tables have record and some do not. what is the cause of this and does anyone know how to repair the tables?, can I just click on the tables and click repair?

The ZC Admin Version page says: Database Data Size: 4,507 kB
The phpMyAdmin Say: Total Size 5.2 MiB
When I tried to download the database in phpMyAdmin it downloaded as 1,750 kB

the first site I installed on a new server I was removing the example categories from a template and deleted a category and I got an error:
0 DB_ERROR_NOT_CONNECTED
in:
[select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]
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.
|
then all the categories where deleted

I saw this again when I tried to change the width of the left had side box column and I got the above error and the width disappeared (e.g. 190px) and I entered it again and it was fine.
I contacted godaddy and reported the error and they asked for a screenshot, and as I could not reproduce the problem a few days later I thought it was fine.

Now on another site I setup for someone, the administrator deleted one product and hundreds of the products she added over the last month got deleted

11 Nov 2009, 7:29 PM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: All My Categories & Products Have Been Deleted... HELP!

This does not make a lot of sense to have:

products_description: Records 0, Size: 3.2 MiB, Overhead: 3.2 MiB

what do you see on the products table?

You can try the repair on the tables, to see if this fixes the record count ...

When you say the say 0 records but there is data, do you mean if you browse them that you see data despite the 0 records being listed?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Nov 2009, 9:46 PM
#20
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: All My Categories & Products Have Been Deleted... HELP!

It does not allow me to browse the table (the browse button has no link), and when I download the database the products_description has only a Table structure. But the phpMyAdmin says the database has a size and overhead of 3.2MiB. I am not a phpMyAdmin expert and I dont know why it say it has 3.2Mib when this does not come in the database when I download it.

It allows me to view the structure which, it is irrelevant (I think) but here is a screen show of that http://www.bubs2grubsknitting.com.au/Screen_05Nov.1122.04.gif

I am scared to click the repair table button as it may or may not delete anything that is there, and because it does not download I have no backup... I will try soon, maybe after contacting the host again; who has not provided any answers yet and whos says they dont think it is a problem with their hosting but maybe something to do with zencart /the way I have installed it, but this problem has not been seen before except for on this server .