Please Help — "Cannot modify header information"

Community Forums Forums General Discussion Please Help — "Cannot modify header information"

This topic is: not resolved

This topic contains 6 replies, has 5 voices, and was last updated by  Susan 6 months, 1 week ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #95022

    Dowling22
    Member
    Post count: 6

    I am using the sixteen-nine-pro theme and have recently encountered this issue when trying to access my WordPress dashboard.

    This is the full error: Cannot modify header information – headers already sent by (output started at /home1/dowling1/public_html/wp-content/themes/sixteen-nine-pro/functions.php:2) in /home1/dowling1/public_html/wp-includes/pluggable.php on line 896

    So I assume the error is on line 2 of the functions file in my theme file sixteen-nine-pro correct?
    Well here is a sample of my code for that file:
    <?php
    //* Start the engine
    include_once( get_template_directory() . ‘/lib/init.php’ );

    //* Set Localization (do not remove)
    load_child_theme_textdomain( ‘sixteen-nine’, apply_filters( ‘child_theme_textdomain’, get_stylesheet_directory() . ‘/languages’, ‘sixteen-nine’ ) );

    See anything I might be missing?
    Your help is very much appreciated.

    #95064

    dev
    Participant
    Post count: 468

    Did you mess with functions.php?

    If not, I’ll bet you added a plugin that has some bad code. Deactivate them one at a time and see if it gets fixed.

    #95086

    Dowling22
    Member
    Post count: 6

    I didn’t go into function.php file and change anything. However I did post some code in the editor that was supposed to allow me to add buttons to my sidebar. However, I could still access my dashboard at the time.
    I cannot access my dashboard at this time, so how can I deactivate the plugin?

    #95137

    genwrock
    Member
    Post count: 861

    Connect the FTP and remove the respective plugin from wp-content/plugins folder


    See My PRO Genesis Child Themes | Need Genesis Developer? | Follow Me on Twitter

    #106225

    Dowling22
    Member
    Post count: 6

    Ok so from my research it is stating that the error is on line 2 of the functions.php file. I have checked, and this is what my code looks like:

    <?php
    //* Start the engine
    include_once( get_template_directory() . ‘/lib/init.php’ );

    //* Set Localization (do not remove)
    load_child_theme_textdomain( ‘sixteen-nine’, apply_filters( ‘child_theme_textdomain’, get_stylesheet_directory() . ‘/languages’, ‘sixteen-nine’ ) );

    I have added ?> to the very end of the file and still no progress. :(
    There are no spaces in the code

    Any ideas?

    • This reply was modified 6 months, 1 week ago by  Dowling22.
    • This reply was modified 6 months, 1 week ago by  Dowling22.
    • This reply was modified 6 months, 1 week ago by  Dowling22.
    • This reply was modified 6 months, 1 week ago by  Dowling22.
    #106263

    Tom
    Participant
    Post count: 997

    from my research it is stating that the error is on line 2 of the functions.php

    I believe that this is incorrect. The code in functions.php stopped processing at line 2 because of another problem ….

    I didn’t go into function.php file and change anything. However I did post some code in the editor that was supposed to allow me to add buttons to my sidebar.

    This is the likely root of your problem. You edited/added code to a theme or plugin file in the editor. This has the same effect as downloading the file using FTP, changing the file and uploading the revised file to the server.

    What file was the code added to? You should be able to edit this file by accessing it via FTP, for instance in functions.php, to remove your addition. Otherwise, if it is a plugin, you can deactivate/disable (or delete) the plugin via FTP, then login to your site (and delete the plugin if not yet done. You should also undo any other “fixes” you have attempted in the interim, such as adding “?>” to the end of a file where it was not previously.


    Choose your next site design from over 350 Genesis themes.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #106375

    Susan
    Moderator
    Post count: 9470

    It is stating that the error is here:

    /home1/dowling1/public_html/wp-includes/pluggable.php on line 896


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

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

You must be logged in to reply to this topic.