• stemlund

    (@stemlund)


    I have a WordPress website that I recently discovered had this error on the login page.

    ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.

    I can only access the login page from wp-login.php – /wp-admin/ display a blank white page.

    I’ve searched the web and tried many things with no success. I’ve tried:

    • removing ?> and space at end of the functions.php
    • ensuring both functions.php and wp-config had no spaces at beginning or end of file
    • opening wp-config.php and functions.php in notepad++ and converting to UTF-8 (people recommend ‘without BOM’ but that is only an option in the newest version of notepad++ – I’m guessing UTF-8 does that now)
    • I’ve set WP_DEBUG to true and have received not errors in debug.log – except for 2 that relate to when I hadn’t fully uploaded some files. that particular error mentioned nav-menu.php – This confirmed that it is reporting errors, just not related to my login issues
    • I renamed each plugin folder with _tmp at the end to try and rule out any plugins causing the problem
    • I also renamed the plugins folder to rule out all plugins at the same time

    Given these things I’ve tried – and that I’m not receiving any PHP errors – what else could I try?

Viewing 2 replies - 1 through 2 (of 2 total)
  • THANK YOU! I know many people are encountering this issue. I’ve been trying to troubleshoot it for a couple days and thought I had tried everything, until I read your list. Mine turned out to be one space at the beginning of the wp-config file. I hadn’t seen that yet. How infuriating… I sincerely hope you figure yours out.

    The only thing I tried that wasn’t on your list was adding

    <IfModule mod_security.c>
     SecFilterEngine On
     SecFilterScanPOST On
    </IfModule>

    to the .htaccess… Good luck.

    Thread Starter stemlund

    (@stemlund)

    I have discovered that I’m having the same exact issue almost exactly a year later. I had forgot what I actually did to fix it the first time. Then finally remembered. Just in case this will help others. I simply delete the existing wp-admin and wp-includes directories for my WordPress install and replace them with fresh files from the most recent WordPress downloaded from www.ads-software.com.

    This seems to fix the issue, without trying to track down the exact file that needs fixed in those folders.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ERROR: Cookies are blocked due to unexpected output.’ is closed to new replies.