Skip to:

Warning: Cannot modify header information

  • Hi, I am receiving an error when I activate, update, or delete plugins. This is also appearing when I try to change the WordPress and/or Site URL. When I update a plugin I get this error duplicated when it tries to activate. When I try to change the site URL, I get a white blank page with the same 2 errors.

    I’ve seen other post similar errors but they all seem to be different circumstances. I am running BP 1.5.1 an WP 3.2.1.

    “Warning: Cannot modify header information – headers already sent by (output started at ………/wp-content/themes/seneca-county/functions.php:2) in ……./wp-includes/pluggable.php on line 934”

    Line 934 is: `header(“Location: $location”, true, $status);`

    I have no clue what this file even does let alone what the error could be. I haven’t modified BP at all and am using a child theme with the only function used to not use the default BP styles.

    Thanks for any help.

Viewing 4 replies - 1 through 4 (of 4 total)

  • aces


    What is in /wp-content/themes/seneca-county/functions.php on line 2?

    This is technically lines 3-13 but line 2 is the just <?php

    `if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
    function bp_dtheme_enqueue_styles() {
    // Bump this when changes are made to bust cache
    $version = ‘20111102’;
    // Register main stylesheet
    wp_register_style( ‘seneca-county’, get_stylesheet_directory_uri() . ‘/style.css’, array(), $version );
    // Enqueue main stylesheet
    wp_enqueue_style( ‘seneca-county’ );
    add_action( ‘wp_print_styles’, ‘bp_dtheme_enqueue_styles’ );

    Boone Gorges


    Does that mean you have a line of whitespace at line 1? Try removing it. `<?php` should be the very first characters in the file.

    Yes, that was exactly it! I didn’t know it had to be line 1. I also had 2 unused lines after ?> and I had to delete that too. Seems to be working now. I activated a couple plugins to test it out. Thanks guys!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.
Skip to toolbar