Forums / General Questions / Moved To New Host and Lost All Products and Categories

Moved To New Host and Lost All Products and Categories

Views: 577

Results 1 to 7 of 7
11 May 2016, 3:18 PM
#1
patience avatar

patience

New Zenner

Join Date:
Dec 2011
Posts:
31
Plugin Contributions:
0

Moved To New Host and Lost All Products and Categories

Hello,
I apologize if this has already been posted. I searched the forum with 3 different terms and never found a post identical to my issue.

I moved my website to a new host recently (my old host was GoDaddy :yuck: -I definitely don't recommend them at all)..

I followed the tutorial from Zen Cart to a T, and got it moved pretty smoothly! I was surprised considering how clueless I am about MySQL databases and whatnot lol

Everything looks awesome.. My custom template is there and looks as it should, my reCaptcha mod is there and working as it should. Only one problem here: All my categories and products I had are gone :blink:

I also noticed how I had to re-do everything in the admin, like for example all of my options for things like website maintenance, layout boxes controller, stuff like that.

I don't mind having to re-do all of the admin-controlled options, but the having to re-make all of the categories I had and re-add all of the products I have is a bit...overwhelming. I was wondering if anyone here knows if there is anything I can do to easily have them all back?

Thank you for your help!

11 May 2016, 4:31 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Moved To New Host and Lost All Products and Categories

Well, depending on which instruction you followed, it sounds like you missed a couple of steps... but, it if you still have access to your old site, it is relatively easy.

You need a backup of your old database, and in the event you have that and did the backup/restore of it, you may need to know what the DB_PREFIX was for your old store as found in includes/configure.php.

If you did do the backup from the old store and then imported that database to your new site, then when you did the install to create the new configure.php files, that removed your old data. Would just need to upload/import again. Assumably the site at the new host is the same version as at the old host. As such do not need to run zc_install again.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

11 May 2016, 4:31 PM
#3
patience avatar

patience

New Zenner

Join Date:
Dec 2011
Posts:
31
Plugin Contributions:
0

Re: Moved To New Host and Lost All Products and Categories

NEVERMIND!

I figured it out. I needed to put the DB prefix in the config file as "zc_"

:D

11 May 2016, 4:33 PM
#4
patience avatar

patience

New Zenner

Join Date:
Dec 2011
Posts:
31
Plugin Contributions:
0

Re: Moved To New Host and Lost All Products and Categories

Thanks! I did figure out what to do, but thanks for the reply.
I did find a troubleshoot for it on the Zen Cart site. That's how I figured out that my DB prefix shouldn't have been blank. Phew! I did NOT want to re-do over 50 products with multiple images haha.

11 May 2016, 6:03 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Moved To New Host and Lost All Products and Categories

Patience:

I followed the tutorial from Zen Cart to a T, and got it moved pretty smoothly!

Patience:

I did find a troubleshoot for it on the Zen Cart site. That's how I figured out that my DB prefix ...

Hi Patience! Glad to hear you got it sorted out.

I was just looking at the tutorial, at: https://www.zen-cart.com/content.php?142-i-want-to-move-my-zen-cart-installation-to-another-host-or-a-different-server

Given that you've recently followed it and had some difficulty with it, what would you suggest be changed in the article to make it easier to "not miss" that DB prefix step?

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

11 May 2016, 8:15 PM
#6
patience avatar

patience

New Zenner

Join Date:
Dec 2011
Posts:
31
Plugin Contributions:
0

Re: Moved To New Host and Lost All Products and Categories

Hi DrByte!

I think the tutorial and troubleshoot are fine, actually. What I did was I looked at the file for my new database and not the old one. So I just looked at my old one that I had backed up and saw that the DB prefix was listed as "zc_", added that into both the configuration files I needed to, then like beautiful leprachaun magic, it worked. hehe :)

11 May 2016, 8:16 PM
#7
patience avatar

patience

New Zenner

Join Date:
Dec 2011
Posts:
31
Plugin Contributions:
0

Re: Moved To New Host and Lost All Products and Categories

*looked at my old configuration file, I mean.
In case anyone accidentally does the same thing I did.