Forums / Templates, Stylesheets, Page Layout / Problem renaming admin folder - v1.38a

Problem renaming admin folder - v1.38a

Locked

Views: 4,108

Results 1 to 20 of 48
This thread is locked. New replies are disabled.
15 Mar 2010, 9:29 PM
#1
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Problem renaming admin folder - v1.38a

Hi there,

I have tried to do the admin patch (change admin name) on zen cart 1.38a and after this I can not get in the admin.

I changed the file permissions as suggested but I think it is not properly changing back somehow.

Any idea's on the best fix for this..... fairly new to zen cart so not too good at this :wacko:

any help appreciated

15 Mar 2010, 10:15 PM
#3
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Hi there,

I just get this message here

Page Not Found
Custom 404 Error Page with Site Map Sample Text ...

I have a /shop folder so it is like this /shop/****** << new admin name

15 Mar 2010, 10:51 PM
#4
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Jay76:

I have a /shop folder so it is like this /shop/****** << new admin name

Most likely you have missed something in your /shop/newadmindir/includes/configure.php file.

Regards,
Christian.

15 Mar 2010, 11:52 PM
#5
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

cant see how as added the new folder name to the configure php and changed the name on the admin main folder? .... strange

16 Mar 2010, 12:56 AM
#6
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Are you sure you were in admin/includes/configure.php and not just includes/configure.php? (just taking a shot here, not sure how you made the changes)

As far as file permissions go, you may need to change them in cPanel as opposed to ftp.

Good Luck, hope it all comes together.

Dalton

Skin that 'un pilgrim, and I'll bring ya' another.
Running 1.3.9h with a few mods here

16 Mar 2010, 4:46 PM
#7
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Hi Dalton,

I followed these instructions >> https://www.zen-cart.com/tutorials/index.php?article=33

Also my web guy had a go and failed too? is there something else that needs to be done extra?

Defo the Admin > Includes folder that this was done on :dontgetit

16 Mar 2010, 5:29 PM
#8
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

I even copied and pasted the new admin folder name to prevent mistakes.

Does this have anything to do because I have a folder called shop then admin so looks like this .... shop>admin

Also noticed a admin.php file? any changes needed for this

16 Mar 2010, 5:47 PM
#9
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

No changes need to be made to the admin.php file just the configure.php file.

If you can post the contents of your configure.php file here between PHP tags then someone might be able to spot if there is a problem. Just blank out the sensitive parts with XXXs.

Regards,
Christian.

16 Mar 2010, 6:02 PM
#10
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

I have just edited these area's as advised;

define('DIR_WS_ADMIN', '/shop//');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/
/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');

and;

define('DIR_FS_ADMIN', '/home//public_html/shop/**********/');
define('DIR_FS_CATALOG', '/home/
/public_html/shop/');

I have used astrix as I dont want to post this fully on the site for obvious reasons

16 Mar 2010, 6:55 PM
#11
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Try This

define('DIR_WS_ADMIN', '/mynewname/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/mynewname/');
define('DIR_WS_HTTPS_CATALOG', '/');

And This

define('DIR_FS_ADMIN', '/home/mysitename.com/www/public/shop/mynewname/');
define('DIR_FS_CATALOG', '/home/mysitename.com/www/public/');

Notice you are only pointing to SHOP in DIR_FS_ADMIN

Past this, I'm in over my head, and hopefully CJPinder can fix it for you,

Good Luck
Dalton

Skin that 'un pilgrim, and I'll bring ya' another.
Running 1.3.9h with a few mods here

16 Mar 2010, 7:02 PM
#12
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

ok cheers Dalton... appreciate the help, sure it is something simple stopping it :D

16 Mar 2010, 7:28 PM
#13
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

I have tried this lots of times.... no joy, this is stupid! why not bring out a version with all the updates included i.e. the pacthes

..... I am now thinking that zen cart was a bad move

16 Mar 2010, 7:38 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

What exactly is the error message you get now? And how do you make that error appear? ie: what URL are you going to, etc?
If it's still telling you it can't find the OLD url where /admin/ is listed as the foldername, then your FTP program isn't uploading your changes, probably due to file permissions.

And, for the record, renaming your admin folder has nothing to do with whether code patches are included or not. It's just best-practice. If you can't rename your admin, then don't. But if you can't, then you probably have some other problems on your site that need addressing, or maybe it's just the file-permissions thing again.

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

16 Mar 2010, 7:38 PM
#15
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

Jay76

Sorry I couldn't help.

Good Luck

Dalton

Skin that 'un pilgrim, and I'll bring ya' another.
Running 1.3.9h with a few mods here

16 Mar 2010, 7:46 PM
#16
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

DrByte:

What exactly is the error message you get now? And how do you make that error appear? ie: what URL are you going to, etc?
If it's still telling you it can't find the OLD url where /admin/ is listed as the foldername, then your FTP program isn't uploading your changes, probably due to file permissions.

And, for the record, renaming your admin folder has nothing to do with whether code patches are included or not. It's just best-practice. If you can't rename your admin, then don't. But if you can't, then you probably have some other problems on your site that need addressing, or maybe it's just the file-permissions thing again.

You could be right with the file permissions, dont worry about me I am just mouthing off because it aint working.

daltonkost:

Jay76

Sorry I couldn't help.

Good Luck

Dalton

Thanks Dalton

16 Mar 2010, 8:02 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

Maybe these may contain some helpful info on how to change permissions using various methods?
https://www.zen-cart.com/tutorials/index.php?article=148
https://www.zen-cart.com/tutorials/index.php?article=9

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

16 Mar 2010, 8:23 PM
#18
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

read that and confident everything has been done correct on the file permissions, I have cpanel access so all done via file manager

..... at a total loss, site will have stay as it is

16 Mar 2010, 8:25 PM
#19
drbyte avatar

drbyte

Sensei

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

Re: Problem renaming admin folder - v1.38a

With all the discussion above I'm still unclear about what exactly your symptoms are.

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

16 Mar 2010, 8:35 PM
#20
jay76 avatar

jay76

New Zenner

Join Date:
Jan 2010
Posts:
91
Plugin Contributions:
0

Re: Problem renaming admin folder - v1.38a

sorry I will explain... when doing the admin rename I just end up at the shop instead of the admin sign in page, I should be able to sign into the admin (new name) but I cant.

I get a error 404 page not found? but still on the shop page? ..... only way I can explain it