WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Headers already sent error - already checked whitespace (13 posts)

  1. atwulf
    Member
    Posted 1 year ago #

    So I got this error:

    Warning: Cannot modify header information - headers already sent by (output started at ***/wp-content/themes/blankslate/functions.php:1) in ***/wp-includes/pluggable.php on line 876

    when I activated the Gravity Forms plugin. Tried it with a few other plugins, too, same problem.

    I've already checked functions.php, pluggable.php, and wp-config.php for leading/trailing whitespace. The error only comes up when I try to activate a new plugin. Any ideas?

    functions.php - http://pastebin.com/8fHeyCTq
    pluggable.php - http://pastebin.com/SFk121tV

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Deactivate all plugins and see if the error goes away.

  3. atwulf
    Member
    Posted 1 year ago #

    Deactivating plugins didn't resolve anything.

    Also, if it makes any difference, this error doesn't come up for the theme on localhost. Fresh install of 3.5.1 on the host. It only started happening when the nameservers were set.

  4. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    When did you set the name servers?

  5. atwulf
    Member
    Posted 1 year ago #

    Yesterday (over 24 hours ago)

  6. atwulf
    Member
    Posted 1 year ago #

    Just checked it with the default theme, error disappeared so it's obviously an issue in my theme. But I'm baffled as to what since this didn't happen at all on localhost or the server before I set the name servers.

  7. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    But I'm baffled as to what since this didn't happen at all on localhost or the server before I set the name servers.

    The settings are different at local host where as servers are configured to stricter and technically advanced levels. I don't think the site would work properly until name servers are set.

    Anyway, glad to know that you could solve the issue. Please mark the topic as resolved. :)

  8. atwulf
    Member
    Posted 1 year ago #

    Actually the issue isn't resolved. The error is still coming up when my theme is activated.

    Tried a couple things including reinstalling both WordPress and the theme on the server and commenting out some code I added to functions.php that I thought might be causing problems but to no avail. I have no idea where this is coming from now.

  9. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Which theme? Where did you download it from?

  10. atwulf
    Member
    Posted 1 year ago #

    It's an original theme I created for a client. Based on blankslate.

  11. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Then you may download a copy and check for any deprecated functions as the theme was updated recently.
    http://wordpress.org/extend/themes/blankslate

  12. atwulf
    Member
    Posted 1 year ago #

    Alright, narrowed the issue down to functions.php. Now I just have to go through there and figure out what I did wrong.

  13. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Welcome! :)

Topic Closed

This topic has been closed to new replies.

About this Topic