• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Please Help — "Cannot modify header information"

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: code edited, php error

  • This topic has 6 replies, 5 voices, and was last updated 11 years, 1 month ago by Susan.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 15, 2014 at 10:05 am #95022
    Dowling22
    Member

    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.

    March 15, 2014 at 2:28 pm #95064
    dev
    Participant

    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.

    March 15, 2014 at 9:30 pm #95086
    Dowling22
    Member

    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?

    March 16, 2014 at 8:52 am #95137
    Genesis Developer
    Member

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


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    May 21, 2014 at 3:53 pm #106225
    Dowling22
    Member

    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?

    May 21, 2014 at 11:25 pm #106263
    Tom
    Participant

    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.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    May 22, 2014 at 2:22 pm #106375
    Susan
    Moderator

    It is stating that the error is here:

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

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble