Zen Cart Logo
Forums / Reports of Security Problems / Problem with Admin console after switching to SSL

Problem with Admin console after switching to SSL

Views: 9

Results 1 to 3 of 3
3 Apr 2014, 7:30 PM
#1
technophrenia avatar

technophrenia

New Zenner

Join Date:
Apr 2014
Location:
Arizona
Posts:
2
Plugin Contributions:
0

Problem with Admin console after switching to SSL

A few days ago I switched on SSL for the first time for my ZenCart store as it is close to going live. But now I am experiencing some problems.

A little background...

My Hosting is with GoDaddy, but I installed ZenCart manually instead of using the "auto install" that GoDaddy offers and created the SQL database myself. I have performed a LOT of customization graphically so I really don't want to have to change from ZenCart.

Last week I added the SSL cert to my domain... and then found out I hadn't turned on SSL in ZenCart yet. So I figured that out and was able to login to my admin console just fine. But now, seemingly everything I click on in the admin console pops up my admin login window! Very frustrating when I am trying to do things like add products to the catalog etc. It also will not delete the original Admin account... although it DID accept a new password.

While researching the problem, I came across a SQL query that is supposed to reset the Admin password and I ran that... could that have caused a problem? And, if so, how can I undo that query?

Below are snips from my \includes\configure.php and \myadminname\includes\configure.php respectively:

define('HTTP_SERVER', 'http://MyDomain.com');
define('HTTPS_SERVER', 'https://MyDomain.com');

define('ENABLE_SSL', 'true');

AND

define('HTTP_SERVER', 'http://MyDomain.com');
define('HTTPS_SERVER', 'https://MyDomain.com');
define('HTTP_CATALOG_SERVER', 'http://MyDomain.com');
define('HTTPS_CATALOG_SERVER', 'https://MyDomain.com');

define('ENABLE_SSL_ADMIN', 'true');

define('ENABLE_SSL_CATALOG', 'true');

Thanks in advance...

3 Apr 2014, 7:42 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Problem with Admin console after switching to SSL

technophrenia:

define('HTTP_SERVER', 'http://MyDomain.com');
define('HTTPS_SERVER', 'https://MyDomain.com');
define('HTTP_CATALOG_SERVER', 'http://MyDomain.com');
define('HTTPS_CATALOG_SERVER', 'https://MyDomain.com');

define('ENABLE_SSL_ADMIN', 'true');

define('ENABLE_SSL_CATALOG', 'true');
Simple: in your ADMIN configure.php, set HTTP_SERVER to https://MyDomain.com

Ref: http://www.zen-cart.com/content.php?56-how-do-i-enable-ssl-after-i-have-installed-zen-cart

3 Apr 2014, 8:27 PM
#3
technophrenia avatar

technophrenia

New Zenner

Join Date:
Apr 2014
Location:
Arizona
Posts:
2
Plugin Contributions:
0

Re: Problem with Admin console after switching to SSL

Thanks DrByte! You are a genius! Worked!