Zen Cart Logo
Forums / Upgrading to 1.5.x / Trying to Access Admin Area Invokes /admin/alert_page.php

Trying to Access Admin Area Invokes /admin/alert_page.php

Views: 1,742

Results 1 to 9 of 9
5 Jun 2013, 1:16 AM
#1
powrwrap avatar

powrwrap

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

Trying to Access Admin Area Invokes /admin/alert_page.php

Have made the jump from v1.38a to v1.51 and almost have it. I've got two things that are strange. I have renamed my admin folder.

  1. When I attempt to access my admin area at https://www.MyDomainName.com/NewAdminFolderName the address changes to:

https://www.MyDomainName.com/admin/alert_page.php

which is a dis-jointed, mixed-up content of my websites home page.

Why do I get redirected to this page?

  1. When I go to the home page of Zen Cart at:
    https://www.MyDomainName.com/ZenCart

I get the shopping cart with this message:

Congratulations! You have successfully installed your Zen Cart® E-Commerce Solution.

and then there is an ad for the Zen Cart's Owner's Manual.

Why is there an ad and how do I fix it?

5 Jun 2013, 1:34 AM
#2
powrwrap avatar

powrwrap

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

Re: Trying to Access Admin Area Invokes /admin/alert_page.php

Would it be related to these lines in NewAdminFolderName/includes/configure

define('DIR_WS_HTTPS_ADMIN', '/ZenCart/admin/');
define('DIR_WS_ADMIN', '/MyDomainName/admin/');

i.e. I should change admin to "NewAdminFolderName"?

5 Jun 2013, 1:36 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Trying to Access Admin Area Invokes /admin/alert_page.php

  1. Since v1.5.0 those lines don't contain hard-coded paths. They are dynamically generated if you're using configure.php files built by zc_install.

  2. Since v1.3.9 you are no longer allowed to use "admin" as your admin foldername, but must instead rename it to something else. Starting with v1.5.0 and newer, this only requires renaming the folder, and no configure.php file edits.

5 Jun 2013, 4:06 PM
#4
powrwrap avatar

powrwrap

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

Re: Trying to Access Admin Area Invokes /admin/alert_page.php

DrByte:

  1. Since v1.5.0 those lines don't contain hard-coded paths. They are dynamically generated if you're using configure.php files built by zc_install.

As per the upgrade instructions I copied over my /includes/configure.php and /admin/includes/configure.php from my old store folder and made changes to the DIR_FS, DIR_WS and DB.XXX portions of them.

  1. Since v1.3.9 you are no longer allowed to use "admin" as your admin foldername, but must instead rename it to something else. Starting with v1.5.0 and newer, this only requires renaming the folder, and no configure.php file edits.

I did rename the admin foldername.

So, how to I resolve this problem of not being able to get to the admin area?

Also why is there an ad appearing for the Zen Cart manual and how to I remove it?

5 Jun 2013, 5:49 PM
#5
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Trying to Access Admin Area Invokes /admin/alert_page.php

powrwrap:

I did rename the admin foldername.
As you upgraded from Zen Cart 1.3.x, your configure.php files will not be altered and will retain the Zen Cart 1.3.x lines for handling the admin folder location. At this time only "clean" installs of Zen Cart 1.5.x will result in the generation of Zen Cart 1.5.x configure.php files with the new features to automatically handle when the admin folder is renamed.

Because your "configure.php" files are from Zen Cart 1.3.x, follow the instructions for Zen Cart 1.3.x in this article: How Do I rename My Admin.

A useful reference for what each line in the configure.php does can be found in this article: configure.php file explained.

5 Jun 2013, 6:09 PM
#6
powrwrap avatar

powrwrap

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

Re: Trying to Access Admin Area Invokes /admin/alert_page.php

lhungil:

As you upgraded from Zen Cart 1.3.x, your configure.php files will not be altered and will retain the Zen Cart 1.3.x lines for handling the admin folder location. At this time only "clean" installs of Zen Cart 1.5.x will result in the generation of Zen Cart 1.5.x configure.php files with the new features to automatically handle when the admin folder is renamed.

Because your "configure.php" files are from Zen Cart 1.3.x, follow the instructions for Zen Cart 1.3.x in this article: How Do I rename My Admin.

A useful reference for what each line in the configure.php does can be found in this article: configure.php file explained.

Yep, that was it! I had to rename /admin in those three lines as per the instructions for renaming MyAdmin in v1.38 to /mynewname

Thanks for the help, much appreciated!

5 Jun 2013, 7:26 PM
#7
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Trying to Access Admin Area Invokes /admin/alert_page.php

No problem and thank you for letting us know it worked!

5 Jun 2013, 7:29 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Trying to Access Admin Area Invokes /admin/alert_page.php

powrwrap:

Also why is there an ad appearing for the Zen Cart manual and how to I remove it?
That's from the default define_ pages. You can replace it with your custom content by simply activating your custom template, assuming of course that your custom template and language files have been transferred over after you've merged changes into them.

6 Jun 2013, 1:58 AM
#9
powrwrap avatar

powrwrap

New Zenner

Join Date:
Mar 2011
Posts:
39
Plugin Contributions:
0

Re: Trying to Access Admin Area Invokes /admin/alert_page.php

DrByte:

That's from the default define_ pages. You can replace it with your custom content by simply activating your custom template, assuming of course that your custom template and language files have been transferred over after you've merged changes into them.

Yes, I see that now. Looks like I've got to track down a few changes that were made to the home screen, the shopping cart contents screen, and the checkout success screen. I'm almost done with the upgrade. Thanks for the help.