Cookies Error – Unable to login
-
Hello! My friend accidentally killed his website.
He logged into the admin panel and manually changed the url to an https without having an SSL certificate. The site immediately locked him out, and the login page couldn’t even be accessed properly.
I went to our host and updated the wp-config to make the site url the https using this code:
define(‘WP_HOME’,’https://zachariahralph.com’);
define(‘WP_SITEURL’,’https://zachariahralph.com’);However, now when I login, I get this error “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
I have tried these code fixes:
define(‘COOKIE_DOMAIN’,’https://zachariahralph.com’ );
define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );
setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);I also have plugins disabled at the moment.
Any assistance would be greatly appreciated!
The page I need help with: [log in to see the link]
- The topic ‘Cookies Error – Unable to login’ is closed to new replies.