WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Admin panel blocked: Warning: Cannot modify header (10 posts)

  1. riverwriter
    Member
    Posted 2 years ago #

    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?

  2. vtxyzzy
    Member
    Posted 2 years ago #

    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.

  3. riverwriter
    Member
    Posted 2 years ago #

    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

  4. vtxyzzy
    Member
    Posted 2 years ago #

    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.

  5. riverwriter
    Member
    Posted 2 years ago #

    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.

  6. vtxyzzy
    Member
    Posted 2 years ago #

    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.

  7. riverwriter
    Member
    Posted 2 years ago #

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

  8. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

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

    It is the file that has the db information.

  9. riverwriter
    Member
    Posted 2 years ago #

    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.

  10. riverwriter
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic