Support » Fixing WordPress » Admin panel blocked: Warning: Cannot modify header

  • Resolved riverwriter

    (@riverwriter)


    Recently, I rewrote config.php to increase cache size to 64 Mb to compensate for a “cannot write” error. A day or two later, I tried to perform an automatic update to WP 3.3, and received this error message:

    Warning: Cannot modify header information – headers already sent by (output started at /home/riverwri/public_html/wordcurrents/wp-config.php:49) in /home/riverwri/public_html/wordcurrents/wp-includes/pluggable.php on line 934

    I consulted the forum for this error, and discovered I should try disabling plugins; however, any admin tab I click on returns that error. Pressing the “back” key allows me to return to the Admin Dashboard, but I can load no other page in the admin.

    My blog is at http://riverwriter.ca/wordcurrents

    What do I do next?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The error is most likely in wp-config.php at line 49, although it could be a few lines earlier. If you have a backup copy of wp-config.php, restore it and try your modification again.

    Otherwise, try editing the existing file and remove your changes.

    Thanks for your response.

    There are only 48 lines in wp-config.php

    I removed the line that changed the cache size to 64 meg, and reloaded it, with no change in the error.

    I added the modification, relaoded it, with no change in the error.

    The line I added was define('WP_MEMORY_LIMIT', '64M');
    I added it after ‘define (‘WPLANG’, ”);’

    I am wondering if I should try a manual install of WP 3.3

    A reinstall of WP will not change the wp-config.php file.

    Please put the file in a pastebin and post a link to it here.

    The pastebin link is http://pastebin.com/hXUWGJfE

    I set it as private. If that restricts you from accessing it, I shall change that setting.

    I don’t believe that is the entire file. I wanted the entire file so I could compile it to find the error. Of course, you will need to change the sensitive information to protect your site.

    That is the complete file, as downloaded from my site.

    Moderator kmessinger

    (@kmessinger)

    The config file will look like this sample,
    http://pastebin.com/ru8N19bu

    It is the file that has the db information.

    Sorry. I am so busy. I realize now that I sent only part of the file.

    I cannot log into pastebin. It keeps wanting me to set up another new account.

    The wp-config.php that I have worked before; I do not think it is the problem.

    I am going to try a fresh install.

    If that doesn’t work. I’ll probably abandon WordPress altogether.

    Thanks for your help. Sorry to have wasted your time.

    I compared wp-config.php with wp-config-sample.php, discovered that part of the former was missing, corrected that, and all is well.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Admin panel blocked: Warning: Cannot modify header’ is closed to new replies.