The solution the “Unprotected Connection” is to add this to functions.php so that PHP / WordPress knows that HTTPS should be ON.
if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
$_SERVER['HTTPS']='on';
}
However, when I try to login to the WordPress Admin for the site with the same username and password as before I get “Sorry, you are not allowed to access this page.”
-
This reply was modified 9 years, 5 months ago by chad480.
@sahilg Thank you!
The line: ‘Pending’ , ‘Failed’ , ‘Processing’ , ‘Completed’, ‘On-Hold’ , ‘Cancelled’ , ‘Refunded’
Can be replaced with: wc_get_order_statuses()