WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Cannot modify header information (32 posts)

  1. lilou1502
    Member
    Posted 1 year ago #

    hi,
    i just installed wordpress but i had a few error messages when i tried to connect to wordpress:

    Warning: Cannot modify header information - headers already sent by (output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1) in /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-login.php on line 362

    Warning: Cannot modify header information - headers already sent by (output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1) in /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-login.php on line 374

    Warning: Cannot modify header information - headers already sent by (output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1) in /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-includes/pluggable.php on line 680

    Warning: Cannot modify header information - headers already sent by (output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1) in /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-includes/pluggable.php on line 681

    Warning: Cannot modify header information - headers already sent by (output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1) in /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-includes/pluggable.php on line 682

    Warning: Cannot modify header information - headers already sent by (output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1) in /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-includes/pluggable.php on line 881

    I tried to do what's said here: http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
    I opened the files in dreamweaver and couldn't find too much space at the lines indicated or at line 1. I added ?> at the end of the files because there wasnt any but still the exact same error messages show up.

    Thank you for your help :)

  2. vtxyzzy
    Member
    Posted 1 year ago #

    Are you sure that Dreamweaver is saving the files as text?

  3. lilou1502
    Member
    Posted 1 year ago #

    yes as php, if i delete a blank line, the same problem except the line mentionned in the error message is the one before

  4. vtxyzzy
    Member
    Posted 1 year ago #

    The error message says the error is in wp-config.php at line 1. Please explain how the line is the one before if you delete a blank line. Where did you delete the blank line?

  5. lilou1502
    Member
    Posted 1 year ago #

    no blank before the php balise or after at the end...
    i delete a blank line right before line 362 and then the error was said to be on line 361. but i then put back the original file.

  6. vtxyzzy
    Member
    Posted 1 year ago #

    The error was detected on line 362, but it actually occurred long before that. Try looking at the wp-config.php file using notepad instead of Dreamweaver.

  7. lilou1502
    Member
    Posted 1 year ago #

    wp config has been created by wordpress when i installed it, i just copied the text into a file named wp config
    what should i be looking for?
    thank you for helping ! :)

  8. vtxyzzy
    Member
    Posted 1 year ago #

    If you cannot see the file in notepad, then it is not in the correct format. Try using notepad to create a new version of the file.

  9. lilou1502
    Member
    Posted 1 year ago #

    sorry i just edited my answer, i can but for the files that are mentionned in the error message wp-login and pluggable i cannot read them, there's no lines
    i cretaed wp-config from the text wordpress gave me after i entered my login and password, i just copied it in a blank php fie

  10. vtxyzzy
    Member
    Posted 1 year ago #

    'wp-login' and 'pluggable' are not the source of the problem. More than likely 'wp-config.php' is the source of the problem. Many times there are 'invisible' characters at the start of that file when the editor used to create/update it does not use 'raw text' format.

    Can you edit it in notepad?

  11. lilou1502
    Member
    Posted 1 year ago #

    yes i can
    theres no space before <?php but at the end there's no ?>
    could it be it ?
    when i opened the wp-login and pluggable there wasnt any either so i added it at the end

  12. vtxyzzy
    Member
    Posted 1 year ago #

    I am not sure. It won't hurt to add it.

    While you are editing it, press CTRL-Home and hit the backspace key several times. Then delete the first character of the line and re-type it before saving the file.

    How are you downloading and uploading the file? Using ftp?

  13. lilou1502
    Member
    Posted 1 year ago #

    i created the wp config myself by editing the sample et renaming it
    otherwise i downloaded all the files from wordpress.org
    i use filezilla to upload
    thank you for your help, i try that !

  14. lilou1502
    Member
    Posted 1 year ago #

    just did it, still the same error
    even before trying to log in, there's these lines above :

    Warning: Cannot modify header information - headers already sent by (output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1) in /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-login.php on line 362

    Warning: Cannot modify header information - headers already sent by (output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1) in /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-login.php on line 374

    same message, but only half of it, it was already there the first time

  15. esmi
    Forum Moderator
    Posted 1 year ago #

    output started at /www/99k.org/a/n/y/anyonecancook/htdocs/blog/wp-config.php:1

    What are you using to edit/create your wp-config.,php file? Whatever it is, stop using it! That's what is creating your problems.

  16. lilou1502
    Member
    Posted 1 year ago #

    notepad... i opened the wp-config sample that was in the wordpress folder and edit it by pasting the code wrodpress gave me and just save it as wp-config.php instead of sample
    what should i do, create a new php file and paste the code again ?

  17. vtxyzzy
    Member
    Posted 1 year ago #

    There are also (old) reports that WP Super Cache can cause that problem.

    EDIT: Also see this thread.

  18. esmi
    Forum Moderator
    Posted 1 year ago #

    edit it by pasting the code wrodpress gave me

    What code? WordPress doesn't give you any wp-config.php code during the install process or after.

  19. lilou1502
    Member
    Posted 1 year ago #

    i dont have that line though... should i add it ?
    all i have is :

    ....
    require_once(ABSPATH . 'wp-settings.php');
    ?>

  20. esmi
    Forum Moderator
    Posted 1 year ago #

    What file are you talking about? Are you working from a copy of wp-config-sample.php?

  21. lilou1502
    Member
    Posted 1 year ago #

    i believe i pasted the code it gave me after entering password, login... etc on that page : http://anyonecancook.99k.org/blog/wp-admin/install.php

  22. lilou1502
    Member
    Posted 1 year ago #

    instead of creating a blank php file and pasting the code, i used the wp-config-sample, deleted the code and pasted the one i got from wordpress

  23. lilou1502
    Member
    Posted 1 year ago #

    Here is what i did (from wordpress the missing manual) :

    Running the Install Script
    This is the final set of steps. Think of it as activating the WordPress site you just created.
    1. To start the installation, type the web address where you installed WordPress into your browser, and then add /wp-admin/install.php to the end.
    2. Click "Create a Configuration File."
    and then got some code

  24. esmi
    Forum Moderator
    Posted 1 year ago #

    So you've not completed the installation yet?

  25. lilou1502
    Member
    Posted 1 year ago #

    yes i did because if i go to the install.php it says it is already installed but when i try to log in it doesnt work

  26. esmi
    Forum Moderator
    Posted 1 year ago #

    So what details are you adding to your new wp-config.php file? Please just give a general answer. Do not post the actual details here.

  27. lilou1502
    Member
    Posted 1 year ago #

    sorry but i'm not sure what you're asking exactly...
    DB_COLLATE is empty but i guess it's normal
    otherwise i have name, user, password, host, charset
    then a series of DEFINE and the end they tell not to chage in the comments... im sorry it's probably not what you're asking though. could you please reformulate the question ?

  28. esmi
    Forum Moderator
    Posted 1 year ago #

    The ONLY things you should be adding to the file are the database name, user, password & host.

  29. lilou1502
    Member
    Posted 1 year ago #

    what about that then:
    should it be like this :

    define('AUTH_KEY', 'put your unique phrase here');
    define('SECURE_AUTH_KEY', 'put your unique phrase here');
    define('LOGGED_IN_KEY', 'put your unique phrase here');
    define('NONCE_KEY', 'put your unique phrase here');
    define('AUTH_SALT', 'put your unique phrase here');
    define('SECURE_AUTH_SALT', 'put your unique phrase here');
    define('LOGGED_IN_SALT', 'put your unique phrase here');
    define('NONCE_SALT', 'put your unique phrase here');

    or like that

    define('AUTH_KEY', 'YbGv9c$vAd244jiY[G?W<WD5gDW]m),F:r0avil;%^*{wSK>T*@p]AOJg1n|`w~Y');
    define('SECURE_AUTH_KEY', '(:t/JOBIAx~C@mg+WJyN=NIO( n/_IR8_pg2qIq#!5.n<Hg:e3g0Ryc+I|(?^`');
    define('LOGGED_IN_KEY', 'GjHix:/%K7I @2jCv>$V)?LNAzld2s@3qt5uJBr@d03Pu4a39r7&k4eh:F#W9a_N');
    define('NONCE_KEY', 'q*GAu92.])s~+GnulSm8Y<JHx_nOi!/l9)Iq#SZ[vMbXTQb>i<%XJsmg5^M+D8Lq');
    define('AUTH_SALT', 'd5IEDdHwedR_eRBGdS#3kEZs)P@-549.>#2?#XH83KC[%Z#i-_VNH_jq43(lK?6&');
    define('SECURE_AUTH_SALT', ',g9*=g#|J4rNi/EFOsKZwh4K..hMz,|44w+pcl@Mpi]vfxXMX Pw<X?QT$?]=XvQ');
    define('LOGGED_IN_SALT', ' oysDW5fI%F<Cl8a27PWk[Q{N&$ZD:hNm;^e:1SSp|wlys Ou*Ld|h8I_hv[=rc2');
    define('NONCE_SALT', '_h*U<]@{,]W3`tVDHMXx.G>+_7v4iSLn[2[@B$04xH_}&#U~.I:O:vRR@x&*UkG,');

    that's the only difference between the sample i edited and the one created by wordpress

  30. lilou1502
    Member
    Posted 1 year ago #

    thank you so much!!! with the one i edited myself, it works perfectly fine. its the frist code up there. i dont know why there's so many other things on the other one created by wordpress

Topic Closed

This topic has been closed to new replies.

About this Topic