WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Error in .php on pluggable.php? (15 posts)

  1. piazawa
    Member
    Posted 1 year ago #

    I'm setting up a website for a customer who is using another web host than I usually use. I'm not able to make it run, get this message:

    Warning: Cannot modify header information - headers already sent by (output started at /rgt/207/72911/www/wp-config.php:1) in /rgt/207/72911/www/wp-includes/pluggable.php on line 881

    I haven't had this problem before. I don't have Dreamweaver, so I'm not able to see the line number the message is refering to.

    What to do?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  3. piazawa
    Member
    Posted 1 year ago #

    I did....but it didn't help, I'm afraid.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    And what exactly did you do?

  5. Kegan Quimby
    Member
    Posted 1 year ago #

    open up the header.php file in the theme. make sure all the calls to the required/included files are in ONE php tag

    <?php include ('path/file1.php'); ?>
    <?php include('path/file2.php'); ?>

    should be

    <?php
    include ('path/file1.php');
    include ('path/file2.php);
    ?>
  6. piazawa
    Member
    Posted 1 year ago #

    This is what I did:

    Download the file mentioned in the error message via FTP or the file manager provided in your host's control panel.
    Open that file in a plain text editor (NOT MS Word or similar. Notepad or BBEdit are fine).
    Check that the very first characters are <?php
    Check that the very last characters are ?>
    To be sure about the end of the file, do this:

    Place the cursor between the ? and >
    Now press the DELETE key on your computer
    Note to MAC users: The "DELETE" key on a PC deletes characters to the right of the cursor. That is the key noted here.
    Keep that key pressed
    For at least 15 seconds
    Now type > and
    save without pressing any other key at all.
    If you press another key, you will bring the problem back.
    Upload the file back to your server after editing and saving the file.

  7. piazawa
    Member
    Posted 1 year ago #

    Can't find the header.php...seems to be missing. I use Thesis. Can't find this file on well functioning sites either

  8. piazawa
    Member
    Posted 1 year ago #

    Maybe the best way is to start from scratch and try again?

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    headers already sent by (output started at /rgt/207/72911/www/wp-config.php:1

    The issue is in wp-config.php - as explained in the page I linked to above.

  10. Kegan Quimby
    Member
    Posted 1 year ago #

    if you're using thesis, you should be fine... but header.php is in wp-content/themes/yourthemename/header.php

    but it seems like the problem is in wp-config.php

  11. piazawa
    Member
    Posted 1 year ago #

    Yes, and it's referring to line 881.

  12. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    No - it's an issue with line 1 in wp-config.php.

  13. piazawa
    Member
    Posted 1 year ago #

    ok..I look into it later, have to go. Thank you all :-)

  14. piazawa
    Member
    Posted 1 year ago #

    Line 1 is containing only the opening .php tag:
    <?php

    Can't see what's missing. Still doesn't work.

  15. piazawa
    Member
    Posted 1 year ago #

    Wow! Suddenly it worked :-))

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.