Can't login after using ssl in wordpress - wordpress

I have two wordpress sites running in dedicated server using nginx. I have ssl certificate for *.domain-name.com and I face problems with one site (sub.domain-name.com) running through ssl. I am using really simple ssl plugin. After enabling ssl I can't login to admin area and no errors are shown in logs or console, the site says incorrect password. If I force disable the plugin, I can login using http with same credentials. With disabled plugin https site works, except the login. (Same configuration is used on domain-name.com site and it works without errors).
I tried emptying cache, deleting and reinstalling plugin multiple times without success. Do you have any ideas what can I check?

I would recommend you to check what exactly you have in _options table in the fields
siteurl
home
You should have there https://sub.domain-name.com
also you need to check your wp-config.php. There might be rules added regarding siteurl and home using incorrect protocol.

Related

WordPress Site - Site not sending any data on user login and checkout

I'm just wondering if anyone might of been had the same experience as me before? I have just migrated a WordPress site (running on an older version of WordPress) to a new dedicated server.
My website loads up perfectly fine, however, when my users are logging in or trying to access the WooCommerce Checkout page, there browsers are returning the "Site did not send any data".
The strangest thing is, some people can log-in, others can't. I've advised my users to try deleting there browser cache and I've setup a tempoary log-in link (Incase the old log-in link my users was seeing was being cached from when my site operated on my previous server)
I've disabled all caching plugins, but in the Network tab, I'm still seeing a few elements being cached, I'm not too sure if this could be WP CLI cache which is perhaps operating in the background?
Ultimately, I'm just trying to get my head around how to solve th "Website did not send any data" error - It's been around 4 days since the server migration completed and previously, users had no trouble at all logging in and navigating the website.
Here's what I've tried so far:
Reset the htaccess file
Disabled caching plugins (Third-party plugins)
Installed Really Simple SSL to ensure all my website paths are being redirected to HTTPS
Changed my PHP handler to SuExec
Disabled server-side cache
Reset permalinks (Changed my permalink setting from Post Name to Plain, and vice versa)
But quite a few of my users are still reporting the same error, whilst other users can access and navigate my website perfectly fine.
Has anyone experienced a similar issue before?
Thank you!

Site not secure, while SSL certificate is installed. Site only secure on Wordpress dashboard

I am using a Wordpress site with an installed SSL certificate. When accessing the site, it shows that the connection is "Not secure". When clicking on the "Not secure" tab, it shows that the certificate is installed but no further information. Only when accessing the Wordpress wp-admin dashboard, it shows that the connection is secure.
Why does it not show that the connection is secure when accessing the main website? What do I need to do to show that the connection is secure?
The connection is not secure because that pages include images that are not secure. To fix that, you can use the Better Search Replace plugin to replace the 'http' by 'https' in the image links. After doing that, restart apache (sudo service apache2 restart) or your web server.
I think it is because of mixed content error just try adding really simple SSL plugin and in the setting there will be a option for mixed content so just turn it on
Hope this works

how to access to wordpress dashboard?

hey there i hosted my site on AWS and it was all okay when i used ssl insecure content but unfortunately i deactivated that plugin by mistake and it made me logout of my admin panel.
So, now when i try to access my dashboard by typing correct username it is not allowing me to sign in into it. please help me in this. The first image shows how my login page looks (different from each time) and a popup box that appears when i try to login in my account and after clicking on it it reverts me back to same login page. please do help me i am depressed now.
First thing, better to attach the valid SSL certificate as it's not only about your dashboard but the end-user will also face the same issue when they try to access your website.
Or if you think that you were able to access your website with that plugin, then do the following
Ssh to your instance
install the plugin from the command line that you have removed and it will start working back.
wp plugin install <plugin-name>
how-to-install-wordpress-plugins-wp-cli
This is because your wordpress site is attempting to load your assets over HTTP rather than HTTPS.
Your SSL comes back as valid when running SSL labs so there is no need to worry about your SSL being invalid.
This will come down to your site actually loading on HTTP behind the load balancer so it is not aware it should be loaded over HTTPS.
There is a small change you can make that fools your blog into believing that it should return HTTPS urls. At the top of your index.php file add the following
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
By doing this only HTTPS urls will be rendered on your site allowing it to be fully accessible as intended.
This is happening because of SSL Issue. Do the Following
Install Really Simple SSL Plugin https://wordpress.org/plugins/really-simple-ssl/
Change Site Url and Home URL Prefix from http:// to https://
Note:- Disable SSL and Install Plugin First in order to be Succesfully run it

After migrating wordpress site some pages redirecting to old domain

I just migrated the my website from my old domain to new domain. Its migrated but when I am clicking on something like pages or category its redirecting me to the old site with this error:
The site can't provide a secure connection. shopskart.in sent an invalid response. ERR_SSL_PROTOCOL_ERROR
Screenshot of error message
I also did these changes in wp-conf and wp-options but still I am getting same issue. Someone said its because its forcing site to https due to SSL I had but now I don't have SSL and don't want one right now.
You probably copied the old SSL file to your new site, and it's still active. You should disable it. Also check if there's any setting (in backend or database) pointing to https in stead of http, since you won't be using a secure connection anymore (Why not? You should!). Check the htaccess file as well! If the problem still occurs try clearing your browsercache.
From where i can find the ssl file. Or code. Actually the website was created by my developer and now he refused to give the data when i asked him. So i migraded using wp plugins and dont know where he pasted the ssl certificate.

Wordpress admin stuck in https, how to turn it off?

The admin side of my wordpress site is stuck in HTTPS and very slow as a result.
I am trying to set the admin to HTTP.
Here is my setup and what I've tried so far.
Godaddy VPS with Godaddy SSL certificate
In wp-config.php I have: define( 'FORCE_SSL_ADMIN', false );
Tried installing the wordpress-https plugin. The admin https checkbox is greyed out / disabled.
Here are the settings on that plugin.
Check httpd.conf and htaccess files for any rewrites - none found.
Server does have Vernish installed - asked Godaddy support to check for any relevant configs in Varnish. None found.
I have tried commenting out code in wp-includes/functions.php based on suggestion here (see comment by user joelbair).
I always flush caches, and sometimes reboot the VPS completely after making changes.
Any suggestions?
Could it be related to SSL signing certificates or how SSL was installed on the server initially?
Was the HTTPS server sending the Strict-Transport-Security header? If so, your browser received instructions to always use HTTPS version of the site. Try opening the HTTP version in another browser, or try clearing your browser cache in an attempt to remove that header's control.
Install WordPress Force HTTPS plugin.
Change you're WordPress Address (URL) and Site Address (URL) in General Setting to https://yoursite.domain
Clear browser cache
No configuration needed.

Resources