Help! Can't login to admin

Hi,



I have been trying to config aShared SSL and I ticked the facility in CS Cart to make the admin area secure (https) but unfortunatly my config.php script was wrong :mad:



My question is, how can I untick the facility for secure admin, eventhough I cannot access the admin area?



Thanks

[quote name=‘jint’]Hi,



I have been trying to config aShared SSL and I ticked the facility in CS Cart to make the admin area secure (https) but unfortunatly my config.php script was wrong :mad:



My question is, how can I untick the facility for secure admin, eventhough I cannot access the admin area?



Thanks[/QUOTE]





Database table cscart_settings. Look for secure_admin and remove the value Y

Thanks, I have tried what you said, then login in to my admin panel. It still gets redirected to https: etc. I have just checked config.sys file and there is no ref to https in there.



Any other idea?



Thanks

[quote name=‘Tool Outfitters’]Database table cscart_settings. Look for secure_admin and remove the value Y[/quote]


[quote name=‘jint’]Thanks, I have tried what you said, then login in to my admin panel. It still gets redirected to https: etc. I have just checked config.sys file and there is no ref to https in there.



Any other idea?



Thanks[/quote]



in phpmyadmin search for %secure% under cscart_settings - change all references of “Y” to “N”

Right I have change the value and global of the following to N:



secure_admin

secure_auth

secure_checkout



and there is no change, still goes to https, with 404 error The server can not find the requested page.



If I clear cache and retype address in using [url]http://www.xxxxxx.co.uk/admin.php[/url] it goes to httpS.



Any more help would be great!



I have just found this in the prepare.php:



/ Detect https



if (isset($_SERVER[‘HTTPS’]) && ($_SERVER[‘HTTPS’] == ‘on’ || $_SERVER[‘HTTPS’] == ‘1’)) {define(‘HTTPS’, true);



} elseif (isset($_SERVER[‘HTTP_X_FORWARDED_SERVER’]) && ($_SERVER[‘HTTP_X_FORWARDED_SERVER’] == ‘secure’ || $_SERVER[‘HTTP_X_FORWARDED_SERVER’] == ‘ssl’)) {define(‘HTTPS’, true);



} elseif (isset($_SERVER[‘SCRIPT_URI’]) && (substr($_SERVER[‘SCRIPT_URI’], 0, 5) == ‘https’)) {define(‘HTTPS’, true);



} elseif (isset($_SERVER[‘HTTP_HOST’]) && (strpos($_SERVER[‘HTTP_HOST’], ‘:443’) !== false)) {define(‘HTTPS’, true);



Does this need to be changed?

PM me Jint.


[quote name=‘jint’]Right I have change the value and global of the following to N:



secure_admin

secure_auth

secure_checkout



and there is no change, still goes to https, with 404 error The server can not find the requested page.



If I clear cache and retype address in using [URL]http://www.xxxxxx.co.uk/admin.php[/URL] it goes to httpS.



Any more help would be great!



I have just found this in the prepare.php:



/ Detect https



if (isset($_SERVER[‘HTTPS’]) && ($_SERVER[‘HTTPS’] == ‘on’ || $_SERVER[‘HTTPS’] == ‘1’)) {define(‘HTTPS’, true);



} elseif (isset($_SERVER[‘HTTP_X_FORWARDED_SERVER’]) && ($_SERVER[‘HTTP_X_FORWARDED_SERVER’] == ‘secure’ || $_SERVER[‘HTTP_X_FORWARDED_SERVER’] == ‘ssl’)) {define(‘HTTPS’, true);



} elseif (isset($_SERVER[‘SCRIPT_URI’]) && (substr($_SERVER[‘SCRIPT_URI’], 0, 5) == ‘https’)) {define(‘HTTPS’, true);



} elseif (isset($_SERVER[‘HTTP_HOST’]) && (strpos($_SERVER[‘HTTP_HOST’], ‘:443’) !== false)) {define(‘HTTPS’, true);



Does this need to be changed?[/quote]

Are the settings in the phpMyAsdmin table: cscart_settings > secure_admin so as in the screenshot? You don’t have to make any changes in the config.php or other files. The only file for HTTPS to be changed when needed is config.local.php.

image-152.jpg

[quote name=‘indy0077’]Are the settings in the phpMyAsdmin table: cscart_settings > secure_admin so as in the screenshot? You don’t have to make any changes in the config.php or other files. The only file for HTTPS to be changed when needed is config.local.php.[/quote]



Both values need to be “N”; and there should be three different values.

[quote name=‘JesseLeeStringer’]Both values need to be “N”; and there should be three different values.[/quote]

Yes, that might be that the last value should be N, but on the test page it’s set so, as in the screenshot.

I’ve tried NO in all three values and also changed No to YES in the Global field and visa/versa. I think I’ve tried every combination.

[quote name=‘jint’]I’ve tried NO in all three values and also changed No to YES in the Global field and visa/versa. I think I’ve tried every combination.[/quote]



Clear your cookies, I logged in just fine.

J.

Many thanks that worked :smiley: