This is the best solution for your Error: cookies are blocked in your wordpress blog login page. I am also too suffered from this unfortunate Error: Cookies are blocked due to unexpected output in my wordpress [login.php] [page]. I felt very bad at that time of getting such error in my login page. I can’t able to login with my login credentials. When login using my wordpress credentials, then it become back to same page with empty login form fields.
Suddenly googled with “Error: Cookies are blocked due to unexpected output in wordpress login.php”, then i have seen lot of solutions with the title [Error: Cookies are blocked due to unexpected output] in the post. So just i have gone through every solution from various blog’s. After implemented the solutions, i can’t get back my login.php in normal stage.
Finally i have solved by the following way from the various blog solutions in simple method.
# Steps to slove ERROR: Cookies are blocked due to Unexpected Output.
# Step 1: Login to your domain.com: Cpanel (or) FTP.
# Step 2: Renew your plugins folder with new name: plugins1
# Step 3: Go to domain.com/wp-login.php, so there, you will not see that cookies error on your login.php. If yes, then
# Step 4: Login using your credentials and hope you will move to dashboard.
#Step 5: Go to Plugins
# Step 6: See, your all plugins are not available to activate right now, because of renaming the plugin folder in Step 2
# Step 7: Go to Cpanel or FTP, and then rename your plugins1 to plugins. Then go back to your domain.com dashboard. Check the plugin, all plugins now available to activate.
# Step 8: Activate the plugins one by one with checking the login.php with ctrl+f5 from another browser for each plugin activation.
# Step 9: So you will finally found which plugin will have an issues, so the step 8 you will correctly point that plugin.
My issues plugin is Force Regenerate Thumbnails
# Step 10: After found your issue plugins, then open that plugin php file (example: force-regenerate-thumbnails.php) on your plugins path: public_html/wp-content/plugins/force-regenerate-thumbnails/force-regenerate-thumbnails.php
Note: Before editing any files, please store a backup file in your local computer.
# Step 11: Open the php file in editor: preferred editor: notepad++ & dreamweaver, so check the file at top have any white space or any extra code found before the open php tag [<?php tag], if you seems any, then please remove the space or code and also check at end of the page after closing php tag [?>] for any white space or code, if you have any, then please remove and upload it into the same file path.
# Step 12: Go to Login.php from another browser; check that cookies error will be cleared.
Another method to solve Error: Cookies are blocked in Login page.
# Step 1: Open Cpanel (or) FTP, download errorlog from your server.
#Step 2: Open the file with notepad++ and check whether it have any following line.
Warning: Cannot modify header information – headers already sent by (output started at public_html/wp-content/plugins/force-regenerate-thumbnails/force-regenerate-thumbnails.php:144) in ../ public_html /wp-login.php on line 414
This will confirm you that it is UTF-8 BOM issue and you could locate the file that has got the issue.
# Step 3: Open the file (In my case it was “force-regenerate-thumbnails.php” file) causing error in Notepad++, which has got the issue. It will show you “Encode in UTF-8” selected under encoding option from the menu. You need to make sure that you have selected “Encode in UTF-8 without BOM” and it is NOT “Encode in UTF-8”, then click on “Convert to UTF-8 without BOM”, hit enter anywhere in your file and save.
# Step 4: Check now with login.php for error cleared or not, if not clear still, please contact us.
Hope, these 12 steps will give you a clear solutions for your Error: Cookies are blocked due to unexpected output in wordpress login.php. If your still have this error in your wordpress login page. Please don’t hesitate to contact me, i will give you a free service to solve your problem.
If you found these steps have cleared your problem from the Error: Cookies are blocked due to unexpected output in wordpress login.php, So, Please don’t forget to share this post in your social platform, may many of your friends & bloggers are looking for the solutions. Help them out by sharing this post.