Zen Cart Logo
Forums / General Questions / I Messed Up

I Messed Up

Views: 981

Results 1 to 15 of 15
6 Oct 2012, 6:31 PM
#1
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

I Messed Up

I was attempting to rename admin and I messed up. These are the steps I took:

I changed the three instances of admin in configure.php and saved it and used ftp to send it to my host.

Then I changed the name using FileZilla... I renamed admin and I did this from the top window. Possibly my mistake right there?

Then when I couldn't get my admin to open I renamed everything back to admin again and DELETED the folder I had renamed. The deletion process seemed to take a long time and it scared me (rightfully so).

Now, when I log on to store administration I get a blank page with this on the top:
Index of /admin
Parent Directory (which is my site - not yet live)
Includes

I did back up a few days ago, but the only place I see the back up is in cPanel on the Home Page. How do I use it to back up. Never did this before.

Can somebody help, please?

6 Oct 2012, 6:44 PM
#2
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: I Messed Up

Are you saying that when you ftp into your website, or look at your website files via file manager on the cpanel, that you no longer have an admin folder at all - not named admin, not named whatever your old admin was named, and not named whatever you had tried to change it to?

If yes, then that was a mistake - a rather big one.

You say your site is not yet live. You may* be able to save it by:

  1. downloading and unzipping a new copy of ZC to your home computer.
  2. Rename the admin folder to whatever you had before.
  3. upload the entire folder to your website - make sure you put it in the same place as the one you deleted.
  4. download the "new" configure file from that admin and fill in all the info about servers and password.
  5. upload that file - overwrite the (now) old one.

*may - might, could be, perhaps, I'm not promising anything.

6 Oct 2012, 7:20 PM
#3
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I Messed Up

No, from cPanel I can open public_html and inside I see an admin folder.

6 Oct 2012, 7:39 PM
#4
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: I Messed Up

and what do you see inside that admin panel?

6 Oct 2012, 7:41 PM
#5
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I Messed Up

joejoejoe:

and what do you see inside that admin panel?

If I open the admin folder than it contains an includes folder which contains configure.php

6 Oct 2012, 7:45 PM
#6
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: I Messed Up

Is that all? It should also have an images folder, a backups folder, and about 80 files.
And in the includes folder, besides the configure file should be about 11 more folders full of stuff and another 20 files or so.

6 Oct 2012, 7:47 PM
#7
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I Messed Up

joejoejoe:

Is that all? It should also have an images folder, a backups folder, and about 80 files.
And in the includes folder, besides the configure file should be about 11 more folders full of stuff and another 20 files or so.

That is probably all the stuff I deleted. Now, what can I do?

6 Oct 2012, 7:49 PM
#8
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I Messed Up

Hang on a minute. I have an images folder but its not inside admin, it's inside public_html. It includes 3ds, attributes, banners, categories, dvd etc.

6 Oct 2012, 7:50 PM
#9
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: I Messed Up

Like I suggested before - get a fresh vesion, unzip to your home computer and upload everything missing and then figure out what you messed up in the configure file.
Or, if you've got the recent backup and dont' mind losing any changes you've made since then - go to your cpanel, somewhere under files you should see a backup and restore link - click on that. IT usually takes you to the backup panel but there will be a link up top somewhere that says restore.
Go to the restore, it will have a list asking you what all you want to restore, click on the one that says "everything in my public_html and you should be able to click through the instructions from there with no problem.

EDIT: And no, that is another images folder.

6 Oct 2012, 8:01 PM
#10
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I Messed Up

joejoejoe:

Like I suggested before - get a fresh vesion, unzip to your home computer and upload everything missing and then figure out what you messed up in the configure file.
Or, if you've got the recent backup and dont' mind losing any changes you've made since then - go to your cpanel, somewhere under files you should see a backup and restore link - click on that. IT usually takes you to the backup panel but there will be a link up top somewhere that says restore.
Go to the restore, it will have a list asking you what all you want to restore, click on the one that says "everything in my public_html and you should be able to click through the instructions from there with no problem.

EDIT: And no, that is another images folder.

My restore choices are Home Directory, MySQL Databases, Email Forwarders & Filters

6 Oct 2012, 8:18 PM
#11
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I Messed Up

In the meantime, I d/l zen cart to my home computer. I am looking at the contents of admin and WOW am I missing a lot of stuff!

A couple of questions. If I do it this way, will I lose everything I have done and second, I want to be sure I don't make any more mistakes. Do I take the backups folder and drag it into admin? How do I get all the contents from this admin folder into my current admin folder? Piece by piece?

6 Oct 2012, 8:40 PM
#12
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: I Messed Up

home folder is your public_html, that's the one you want. You didn't screw with the database or email, no need to restore anything there.

If you're going to try and upload the files from an unzipped version then you can do it any way you want but if all you screwed up is the /admin/includes folder then that's all you should be uploading. If you don't know what you messed up in the configure files you might be better off just doing the restore from backup.

6 Oct 2012, 10:46 PM
#13
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I Messed Up

joejoejoe:

home folder is your public_html, that's the one you want. You didn't screw with the database or email, no need to restore anything there.

If you're going to try and upload the files from an unzipped version then you can do it any way you want but if all you screwed up is the /admin/includes folder then that's all you should be uploading. If you don't know what you messed up in the configure files you might be better off just doing the restore from backup.

About doing it from the backup - The only place I see the backup files is in the cPanel. The only option I am getting to restore is to browse my home computer files. There doesn't seem to be a copy feature to get the files into my home computer.

As for configure, I just put it back to admin, so that should be fine.

6 Oct 2012, 11:50 PM
#14
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: I Messed Up

It's fixed! I followed your instructions and used the new ZC I d/l and I also was able to change the admin name. Whew!

Thank you for your time.

6 Oct 2012, 11:59 PM
#15
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Re: I Messed Up

great. Now you should to go to your cpanel, do a full backup to include home directory and database, and download it to your computer before you continue to modify files.