Hello forum
I have inherited a website from a friend of mine who died recently. The website is running CMSMS version 1.10.3 (yes, I know - from 2011!).
Suddenly I can't log in as admin. I get a browser message: "The information you're about to submit is not secure" in both Chrome, Edge and Firefox.
Could it be because the login page is trying to redirect to an "insecure" HTTP page? The website is running HTTPS.
How do I fix this? I do have access to the server and the database.
I also need to start figuring out how to upgrade, but I don't dare start when I can't log in as admin.
/Tommy
Can´t login as admin Topic is solved
Re: Can´t login as admin
You'll likely need to force the login page to NOT use https (using an .htaccess file in the /admin folder). If I remember correctly, 1.10-ish versions had some mixed content which never used to be that important, but browsers now won't load it. Once you get it to 1.12ish I think you'd be fine going back to https.
Not getting the answer you need? CMSMS support options
Re: Can´t login as admin
Thx for your reply. I'm not an expert in .htaccess, so after a lot of googling, I found this string, which unfortunately didn't work:
Header edit Location ^http://(.*)$ https://$1
/Tommy
Header edit Location ^http://(.*)$ https://$1
/Tommy
Re: Can´t login as admin
It should be something like:
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L]
The other option is to remove any forced https from the root level .htaccess or elsewhere (some hosts have options in their control panel) then making sure to use an incognito session and http:// in the url.
If you can't get it to work, you may need to hire a developer to help. See my signature for a link to our hire-a-dev program.
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L]
The other option is to remove any forced https from the root level .htaccess or elsewhere (some hosts have options in their control panel) then making sure to use an incognito session and http:// in the url.
If you can't get it to work, you may need to hire a developer to help. See my signature for a link to our hire-a-dev program.
Not getting the answer you need? CMSMS support options
Re: Can´t login as admin
You could also set it in the config.php...
$config['root_url'] = 'http://yoursite.com';
$config['ssl_url'] = 'http://yoursite.com';
$config['root_url'] = 'http://yoursite.com';
$config['ssl_url'] = 'http://yoursite.com';
Re: Can´t login as admin
After some fiddling, I finally got this to work:
$config['root_url'] = 'https://yoursite.com';
$config['ssl_url'] = 'https://yoursite.com';
So now I´m back in business - Thank you guys!
$config['root_url'] = 'https://yoursite.com';
$config['ssl_url'] = 'https://yoursite.com';
So now I´m back in business - Thank you guys!