Site not working: ERROR cannot modify header information / pluggable.php

This topic contains 3 replies, has 2 voices, and was last updated by  Stiofan O’Connor 10 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #17471

    ekronen
    Expired Member
    Post count: 1

    Have just updated GeoDirectory and now get this error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/lisbusin/public_html/wordpress/wp-content/themes/GDF_child/functions.php:16) in /home/lisbusin/public_html/wordpress/wp-includes/pluggable.php on line 1173

    I could log in once, but got this error when I logged out and now can’t log in again. I’ve cleared caches and tried different browsers.

    I’ve been removing plugins one by one, particularly those that could potentially cause a problem (but none of them have till this update), but still get this error.

    I’m using the latest version of WP, and as mentioned, have just updated GeoDirectory theme and plugins.

    All custom formatting has been removed, e.g. bg is now grey when it should be white; map markers are not displaying, etc.

    Dev site at http://lismorebusiness.com.au/wordpress. It’s still development, but I really want to get it out there asap. Your assistance would be greatly appreciated.

    Thanks,
    Ellen

    #17474

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Ellen,

    My guess is you have a closing PHP tag and then a blank space in your child theme functions file. You should be abel to remove the closing PHP tag with no problems.

    
    
    ...
    
    ?>
    HIDDEN SPACE

    Stiofan

    #17488

    ekronen
    Expired Member
    Post count: 1

    Thanks for the quick reply.

    I’ve removed the closing php tag, so now my child theme functions look like this, i.e. I’ve removed the closing tag only – I don’t need to remove the opening php tag? Formatting still not working though, but at least I can log in 🙂

    T

    <?php
    /*#############################################
    HERE YOU CAN ADD YOUR OWN FUNCTIONS OR REPLACE FUNCTONS IN THE PARENT THEME
    #############################################*/

    // Here we defind the textdomain for the child theme, if changing you should also replace it in the function below.
    if (!defined(‘GDF_CHILD’)) define(‘GDF_CHILD’, ‘gdf_child’);

    add_action(‘after_setup_theme’, ‘gdfc_theme_setup’);
    function gdfc_theme_setup(){
    // load_child_theme_textdomain( GDF_CHILD, get_stylesheet_directory() . ‘/languages’ ); // uncomment this if you plan to use translation
    }

    #17512

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    no you dont need to remove the opening tag, that would make it worse 🙂
    I am not sure what you mean by “Formatting still not working ” but if you explain and send wp-admin details in a private reply i will take a look.

    Thanks,

    Stiofan

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount