wp admin – Why do I get this fatal error? Fatal error: Uncaught ValueError: setCookie(): “,”, “;”, “”, “\t”, “\r”, “\n”, “\013”, etc in “path” option can not join.

I accidentally changed the URL of my wordpress page, which I finally managed to restore in phpmyadmin, the first page of my website works, but the second page doesn’t, and I can’t even log in to the admin interface because It throws this error message:

Fatal error: Uncaught ValueError: setcookie(): “path” in option “,”, “;”, “”, “\t”, “\r”, “\n”, “\013”, or “\014″ in C:\xampp\htdocs\hh\wp-login.php:481 stack trace: #0 C:\xampp\htdocs\hh\wp-login.php(481): setcookie(‘wordpress_test_.. .’ , ‘WP Cookie Check’, 0, ‘/hh\r\n/’, ”, false) #1 {main} on line 481 thrown in C:\xampp\htdocs\hh\wp-login.php Gone

This is part of the code: if (SITECOOKIEPATH!==CookiePath) { setcookie(TEST_COOKIE, ‘WP CookieCheck’, 0, SITECOOKIEPATH, COOKIE_DOMAIN, $secure); ,

I looked to see if I hit something in there, but no. I’ve also tried replacing it with the code I copied from Github, but that doesn’t work either. Thank you in advance for your help!

Leave a Comment