If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / admin password problem

admin password problem

Started by sadie on 6 Sep 2012, 5:29 PM · Views: 2,612

Results 1 to 13 of 13
6 Sep 2012, 5:29 PM
#1
sadie avatar

sadie

Zen Follower

Join Date:
Aug 2004
Posts:
252
Plugin Contributions:
0

Post #1 by sadie

I upgraded my site to 1.5, changed the admin cofigure files to allow ssl in the admin in order to install the authorize.net module.

  1. I still cannot install authorize.net (AIM), it still says:
    ALERT: For security reasons, Installation of this module is disabled until your Admin is configured for SSL.

  2. Every time I log on as admin, It forces me to reset the password. Here is the error:

Note: Your password has expired because your site has changed from non-SSL (less secure) to being SSL-protected (more secure). Changing your password under SSL is an important step to greater security. Sorry for any inconvenience. Standard password expiry rules apply.

I found another post about issue 2 above in June, but there were not any replies.

Sadie

6 Sep 2012, 5:37 PM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

Simply set your admin HTTP_SERVER and HTTPS_SERVER to BOTH be an https URL, as explained here: http://www.zen-cart.com/content.php?56-how-do-i-enable-ssl-after-i-have-installed-zen-cart

And make sure the file actually gets uploaded (it won't be uploaded if the file is read-only).

Under normal circumstances (ie: a traditionally configured server with traditional correctly installed SSL certificate, and no URL-rewriting or redirects in .htaccess), none of your symptoms in your "#2" would persist beyond the first instance of requiring the new password.

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

6 Sep 2012, 5:48 PM
#3
sadie avatar

sadie

Zen Follower

Join Date:
Aug 2004
Posts:
252
Plugin Contributions:
0

Post #3 by sadie

I've already made those changes. After the changes the 1.3 store works fine, but the other 1.5 store I am building gets errors: Here is my admin configure file, with my website removed:

define('HTTP_SERVER', 'https://www.____.net');
define('HTTPS_SERVER', 'https://www.##########.net');
define('HTTP_CATALOG_SERVER', 'https://www.##########.net');
define('HTTPS_CATALOG_SERVER', 'https://www.##########
.net');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'true');

// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', 'true');

6 Sep 2012, 6:25 PM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

Here's how it works:

AIM expects that the URL being used at the point of accessing the module's installation screen must be an https URL.
If it's not https, then you'll see the message you're reporting.

The password reset because of changing from NON-SSL to SSL is triggered by logging into the Admin over NON-SSL and then later accessing over SSL.
So, if you're triggering that, then it means your admin has let you log in without using only https URLs.

Thus, that tells me you're flipping back and forth between modes.
So, this suggests that you're using multiple configure.php files when accessing the same database. This would be a problem with your development environment.

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

6 Sep 2012, 7:05 PM
#5
sadie avatar

sadie

Zen Follower

Join Date:
Aug 2004
Posts:
252
Plugin Contributions:
0

Post #5 by sadie

DrByte:

Here's how it works:

AIM expects that the URL being used at the point of accessing the module's installation screen must be an https URL.
If it's not https, then you'll see the message you're reporting.

The password reset because of changing from NON-SSL to SSL is triggered by logging into the Admin over NON-SSL and then later accessing over SSL.
So, if you're triggering that, then it means your admin has let you log in without using only https URLs.

Thus, that tells me you're flipping back and forth between modes.
So, this suggests that you're using multiple configure.php files when accessing the same database. This would be a problem with your development environment.

Your were right. When I watched my admin clicks, every other click was non-SSL. I'm not sure why there was a problem, since I made changes to each the secure and non-secure admin configure files when I made changes. I have a copy of my entire store in the secure (SSL)section of my hosting account. I deleted the configure file from the secure section, and then copied the configure file from the non-secure section over to the secure section, and the problem was fixed.

6 Sep 2012, 7:41 PM
#6
drbyte avatar

drbyte

Sensei

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

Post #6 by drbyte

sadie:

I have a copy of my entire store in the secure (SSL)section of my hosting account. I deleted the configure file from the secure section, and then copied the configure file from the non-secure section over to the secure section, and the problem was fixed.

I STRONGLY suggest that you work with your hosting company to find a way to symlink your "secure" section to look directly at your non-secure section. There's NO good reason to have to separate them on contemporary webservers nowadays. If your host can't do that, then you've got a lotta work to do every day when trying to keep things in sync between the two places. It's a very outdated server architecture, and not well-suited for ecommerce or any other dynamically-driven site.

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

10 Sep 2012, 3:03 AM
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #7 by divavocals

DrByte:

I STRONGLY suggest that you work with your hosting company to find a way to symlink your "secure" section to look directly at your non-secure section. There's NO good reason to have to separate them on contemporary webservers nowadays. If your host can't do that, then you've got a lotta work to do every day when trying to keep things in sync between the two places. It's a very outdated server architecture, and not well-suited for ecommerce or any other dynamically-driven site.
I made one client changes hosts (Yahoo) for this reason.. I think Yahoo still uses this kind of server setup..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

14 Sep 2012, 4:27 PM
#8
sadie avatar

sadie

Zen Follower

Join Date:
Aug 2004
Posts:
252
Plugin Contributions:
0

Post #8 by sadie

I’m not sure it is my host’s fault. I’ve had two hosts, and it has always been set up like this for years. When I switched hosts a few years ago, they transferred my site exactly as it was.

Once I finish with the last few design changes, and put the site live, I will look into how to make it work the way DrByte suggested. It certainly would save disc space, since I am not on an unlimited plan, and had to move up to a more expensive plan just to have the disc space to work on the upgrade, and have my separate live site.

14 Sep 2012, 7:18 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #9 by dbltoe

It certainly would save disc space, since I am not on an unlimited plan, and had to move up to a more expensive plan just to have the disc space to work on the upgrade, and have my separate live site.:shocking: Unless you have thousands of HUGE images, you need to find a new host. One of our largest sites is only 85m!

That would be less than 200m for two sites. Most hosts default at about ten times that. Most will allow multiple databases as well.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

8 Oct 2013, 11:03 PM
#10
samuelsmith1979 avatar

samuelsmith1979

New Zenner

Join Date:
Jan 2007
Location:
utah
Posts:
26
Plugin Contributions:
0

Post #10 by samuelsmith1979

I'm having a similar problem. I've changed everything as suggested, in the config files my ssl is working at https://www.langeoriginals.com (I've just upgraded from 1.3.1-1.5.1) I login to the admin area and on the second page and subsequent pages I lose the SSL. As a result I'm locked out of the payment modules. I'm using webmasters.com for hosting and I believe they did away with a separate area for secure files. I'm not seeing "duplicate" config files. Please advise.

8 Oct 2013, 11:30 PM
#11
samuelsmith1979 avatar

samuelsmith1979

New Zenner

Join Date:
Jan 2007
Location:
utah
Posts:
26
Plugin Contributions:
0

Post #11 by samuelsmith1979

I've just checked my test install at airsoftjack.com and it's working fine. Dunno whatsup with this instance.

9 Oct 2013, 2:41 PM
#12
drbyte avatar

drbyte

Sensei

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

Post #12 by drbyte

samuelsmith1979:

I'm having a similar problem. I've changed everything as suggested, in the config files my ssl is working at www.langeoriginals.com (I've just upgraded from 1.3.1-1.5.1) I login to the admin area and on the second page and subsequent pages I lose the SSL. As a result I'm locked out of the payment modules. I'm using webmasters.com for hosting and I believe they did away with a separate area for secure files. I'm not seeing "duplicate" config files. Please advise.

The SSL FAQ article and the comments inside the admin configure.php file both explain that if you want your ENTIRE admin to be SSL-protected, simply set the HTTP_SERVER to an https URL, just like your HTTPS_SERVER value.
And, remember, the file is stored as read-only on the server, so you'll need to make the file writable before your changes can be saved to the file, else your changes won't take effect.

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

9 Oct 2013, 5:19 PM
#13
samuelsmith1979 avatar

samuelsmith1979

New Zenner

Join Date:
Jan 2007
Location:
utah
Posts:
26
Plugin Contributions:
0

Post #13 by samuelsmith1979

thanks DrByte,
Had a setting wrong in dreamweaver. Did it this morning by ftp and it worked! :D Thanks again.