Forums

Another 'Could not modify headers' error (5 posts)

  1. ben@nabidana.com
    Member
    Posted 4 months ago #

    Error message when doing anything with plugins. Have read the forum as best I can.

    Warning: Cannot modify header information - headers already sent by (output started at /home/paveepoi/public_html/sitenua/wp-includes/general-template.php:2101) in /home/paveepoi/public_html/sitenua/wp-includes/pluggable.php on line 866

    line 866 on pluggable.php is:

    header("Location: $location", true, $status);

    immediately followed by a curly bracket and the rest of the PHP. There is no blank line at the beginning or end of the file, or before the closing

    >?

    general-template.php also appears to have nothing seriously wrong. No blank lines before the opening <php or the closing ?>

    I can't identify any obvious solution, but I am happy to hope there will be one. Have reinstalled the WordPress, have upgraded the theme.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

  3. ben@nabidana.com
    Member
    Posted 4 months ago #

    Thanks for that esmi - I can now interpret the problem and see that the issue must lie in general-template.php , but I don't see it.

    I'm using crimson editor to get line numbers.

    There is no white space below the closing ?> and none before the opening <php

    On line 2101 of general-template.php there's the following:

    echo apply_filters( 'wp_admin_css', "<link rel='stylesheet' href='" . esc_url( wp_admin_css_uri( $file ) ) . "' type='text/css' />\n", $file );

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

  5. bits_lynx
    Member
    Posted 3 months ago #

    I tried first by just replacing the general-template.php file but that didn't do it.
    I uninstalled the feedwordpress plugin which was the one showing the error. The problem persisted
    I manually installed the plugin. didn't do it either..

    So I finally decided to replace the whole wp-includes folder..
    Nope that didn't worked either... any suggestions??

    If I disable feedwordpress the error goes away. I use the same plugin for syndication in my other blogs but this is the first time it happens... I noticed that when I first started using the plug-in that error didn't appeared...

Reply

You must log in to post.

About this Topic

Tags