Categories disappeared

Locked

Started by paulfromwales on 26 Oct 2006, 1:59 PM · Views: 2,801

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
26 Oct 2006, 1:59 PM
#1
paulfromwales avatar

paulfromwales

Zen Follower

Join Date:
Aug 2006
Posts:
102
Plugin Contributions:
0

Categories disappeared

MY client was adding a category and a subcat. then decided to delete the category. From what she told me, the same thing she had done many times before, she deleted the unwanted category and every category on the website was deleted, i checked the DB and it was true, an empty cat. table. What could have caused this and what do i do?

26 Oct 2006, 4:31 PM
#2
Kim avatar

Kim

Obaa-san

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

Re: Categories disappeared

First, restore the back up of the Database. Second, what version of Zen Cart is being used?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

27 Oct 2006, 10:58 AM
#3
paulfromwales avatar

paulfromwales

Zen Follower

Join Date:
Aug 2006
Posts:
102
Plugin Contributions:
0

Re: Categories disappeared

version is 1.30 and i am not to sure how to put backup back in. Also backup is quite old so lesson learned. I downloaded a .sql copy of DB and it is just one lone file of text. I only want to put the categories back in PLUS since the back up loads of other stuff has been added but they were not deleted so if i upload .sql file will it effect the stuff added after?

It is strange she had a category i think she added sub cat in it then she clicked on the red cross to delete the cat after, something she had done many times and there were no yellow linked boxes to say products linked and when the sinlge cat selected to delete ALL were deleted, she is not impressed. could it be something or someone doing this or is there a problem, has this happened before or has she clicked on something by accident to link them all, i dont know but I need to know so i can make sure it doesnt happen again...

Help...

Paul

27 Oct 2006, 11:16 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Categories disappeared

Contact your Hoster and explain your backup problem. They might have a recent backup they can provide, from before the db changes were made.

Also, Kim has that 'tutorials' link in her posts for a reason. :wink2:

The learning is in the doing.

Potent Products

27 Oct 2006, 11:37 AM
#5
paulfromwales avatar

paulfromwales

Zen Follower

Join Date:
Aug 2006
Posts:
102
Plugin Contributions:
0

Re: Categories disappeared

Hosting cant help, they back up but dont help individual sites, for mass backup if server problems i guess. Any thought on my issues??

28 Oct 2006, 3:35 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Categories disappeared

Good thing our hosting site does not follow those practices ... or we would be doomed ... :cry:

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!

28 Oct 2006, 9:12 AM
#7
paulfromwales avatar

paulfromwales

Zen Follower

Join Date:
Aug 2006
Posts:
102
Plugin Contributions:
0

Re: Categories disappeared

I have a backup .sql file, thouh it is quite old but better than nothing. If i upload this backup will it mess with anything that was added after the backup was made, will it wipe everything and use the new upload or will it just add the additional entries. I have added the module for saving from db now, can i add the .sql file this way or must i go via the phpmyadmin panel

I only want to add the categories from this .sql file because that is all that is missing when the problem occured and i dont know how it happened. Still a mystery, this is what the person it happened to said:

"I was going to build a new category with sub categories….I put in the new category as I always do…gave it a title and then I added two sub categories as I have done so many times.

I went to the live shop to press the refresh button to see if it appeared as I wanted…didn’t have to press the refresh button as it had already appeared…mmmm…

I went back into admin and deleted the sub categories…successfully…as I have done before and then I clicked on the delete button for the category I had created…It came up with message …are you sure you want to delete this category…I clicked delete and everything dis-appeared before my very eyes…That is how I recollect the events leading up to this mystery…"

Does anyone have any ideas, the site is https://www.edenspirit.co.uk if you need to look.

Please advise, i cant have this happening again

Paul

28 Oct 2006, 12:44 PM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Categories disappeared

A mySQL database is nothing more than a text file in structured format. This means you can open with any Text Editor -- do not use a WordProcessor!

The following is highly unorthodox but 'may' help with your situation.

Download your current db
Open current db and previous db in a Text Editor
In both files, find this beginning: -- Table structure for table categories
In previous db file, copy everything from beginning to this line: -- Table structure for table configuration
In current db file highlight the same beginning and ending, replace (Paste) with code from previous db
Save and upload

Make sure you have an unaltered backup of your current db, in case the above does not work.

The learning is in the doing.

Potent Products

28 Oct 2006, 5:43 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Categories disappeared

Rob's right. You'll have to do the same with the 'categories_description' table too.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Oct 2006, 5:50 PM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Categories disappeared

Couldn't edit my earlier post but for the sake of clarity, wanted to point out that by copying / pasting everthing inbetween:

Table structure for table categories and Table structure for table configuration

you grab both TABLEs for 'catagory', including 'categories_description'.

The learning is in the doing.

Potent Products

29 Oct 2006, 8:53 AM
#11
paulfromwales avatar

paulfromwales

Zen Follower

Join Date:
Aug 2006
Posts:
102
Plugin Contributions:
0

Re: Categories disappeared

Cheers guys

I had a lovely bit of fun doing this (not). It took a while and i tidied the file up a bit to make it readable but in the end once i could find the category and product lines I salvaged about half the lost products, rest was lost due to it being old saved file. But my fear is to what the hell happened in the first place, only the categories disappeared. I am thinking foul play, and passwords have now been changed for everything, and lesson learned about backing up stuff. But do you have any ideas how every category could be deleted from what she did or is it a security issue??

Any thouhts appreciated, oviously i dont want this happening again

Cheers
Paul

29 Oct 2006, 1:09 PM
#12
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Categories disappeared

You may just have to chalk this up as one of life's little mysteries. :wacko:

As the problem started from someone who was legitimately logged into the Admin section, I highly doubt it is a security issue.

Silver lining is the importance of "regular" backups has been confirmed.

The learning is in the doing.

Potent Products