BrightO Posted November 22, 2016 Share Posted November 22, 2016 When you enable SSL via the backend admin and then you break the site, is there an easy way of fixing this manually please (CCv6.1.1) ? I am unable to login to the backend of the store to disable SSL. I believe previous versions have config tools to download and do this. I am literally going into the DB to change cubecart_config table out of desperation.... I see a key value pair of "ssl_url":"https:\/\/mysite\/cubecart6","ssl_path":"\/cubecart6\/" Can I just delete and replace this with "enable_ssl":"0" Or there is a better way of fixing this? Thought I should ask before i make things worse. Many thanks Bright Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 22, 2016 Share Posted November 22, 2016 If I am not mistaken, latest versions of CC6 have on the login page, a padlock. Click the padlock to "lock" or "unlock" SSL. You should be able (IIRC) to unlock the padlock, then login and set SSL to No. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 22, 2016 Share Posted November 22, 2016 I see the lock on the login box, but I don't see a way to unlock it. I have edited the CubeCart_config settings before by decoding the base64, then saving back the encoded edited version. But I always make a copy of the CubeCart_config table before trying it. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted November 22, 2016 Share Posted November 22, 2016 Brian is right. SSL is not forced on the admin login. Just change the protocol back to http://, login and correct your settings. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 22, 2016 Share Posted November 22, 2016 "I don't see a way to unlock it." Click on that padlock icon just above the text entry field where you enter your CubeCart admin username. (I am NOT referring to any padlock your browser shows in the browser's address bar.) All it does is to refetch the login page using https if it was http, or http if it was https. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 22, 2016 Share Posted November 22, 2016 My .htaccess file settings must be preventing that, as changing to http:// or clicking the lock do nothing for me. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 22, 2016 Share Posted November 22, 2016 When you hover your mouse cursor over the padlock as seen on the CubeCart Store Control Panel Login box, does it not change to a pointy-finger and the web address for this link does not show on the browser's status bar? When actually clicking on the padlock image, do you not get a page refresh? If the padlock is not a link, and does not behave like a common link, then we need to look into this. The CC611 admin template login.php has this being a standard link. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 23, 2016 Share Posted November 23, 2016 It IS a hot link. I DO get a page refresh to https:// If I right click copy the link and paste in Notepad, it's http://. It's my .htaccess settings doing it. Quote Link to comment Share on other sites More sharing options...
BrightO Posted November 23, 2016 Author Share Posted November 23, 2016 I appreciate your input and quick response. @Brian, I am working in localhost mode just trying the look and feel of 6.1.1 for a new project. So no option for https amendment from the browser. When i type in http://127.0.0.1/cubecartv6/ it auto changes the protocol from listening on port 80 (http://) to port 443 (https://) then i get cannot connect to this URL error (which makes sense because I haven't got SSL enabled on the server). The cubecart_config table data is different from a fresh install I made so I am assuming when i enabled the SSL in the backend it updated the DB and now forcing me to https. @ Dirty Butter, thanks for your input also, can you let me know what you amended in the cubecart_config table please? Any joy with the htaccess amendment? If yes, what did you change. Many thanks Quote Link to comment Share on other sites More sharing options...
BrightO Posted November 23, 2016 Author Share Posted November 23, 2016 Ok, so I have made some progress, was able to login to admin panel via http://, then wen to ->Store Settings->SSL (tab) ->Enable SSL - changed to 'No' -> Save... Cleared cache -> restart server. Went to front end but still redirects me to https:// even when i type in http://127.0.0.1/cubecart6 I have done a fresh install and its working fine, but it will be nice to have a solution for this in case someone face the same issue in Production. Perhaps something similar to this CubeCart Config recovery tool -> http://files.inmotionhosting.com/support_files/CubeCart-v3_Config_Tool_1.0.zip for V6? Or if someone can point us to code specific in package or database where we can do manually amendment that will be great. Thanks Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted November 23, 2016 Share Posted November 23, 2016 Maybe the browser has cached the SSL redirect. https://www.a2hosting.com/kb/getting-started-guide/internet-and-networking/clearing-a-web-browsers-ssl-state Or just try: http://127.0.0.1/cubecart6/index.php?123 Quote Link to comment Share on other sites More sharing options...
BrightO Posted November 23, 2016 Author Share Posted November 23, 2016 10 minutes ago, Al Brookbanks said: Maybe the browser has cached the SSL redirect. https://www.a2hosting.com/kb/getting-started-guide/internet-and-networking/clearing-a-web-browsers-ssl-state Or just try: http://127.0.0.1/cubecart6/index.php?123 And thenI put a cube of sugar in my coffee- sweet, that worked as magic!!! Thanks Al Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted November 23, 2016 Share Posted November 23, 2016 A question mark for the start of a query string with anything after it will force a cache clear in most browsers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.