-2

I know this question has been asked a lot but I simply can't figure out what the problem is here. I am still a noob with PHP and I desperately need help please!

Problem:

Warning: Cannot modify header information - headers already sent by (output started at /home/mfgymrwu/public_html/wp-includes/update.php:1) in /home/mfgymrwu/public_html/wp-login.php on line 431

Warning: Cannot modify header information - headers already sent by (output started at /home/mfgymrwu/public_html/wp-includes/update.php:1) in /home/mfgymrwu/public_html/wp-login.php on line 444

Here is the login.php file: wp-login.php

Community
  • 1
  • 1
  • HTTP message consists of headers (which describe the message) and the body (which carries the stuff people are interested in). What you are trying to do is sending the headers **after the body** - it won't work. You can't. A cookie is an HTTP header. Now you know why it happens and you can check the answer provided by @vard. – Mjh Jan 04 '16 at 10:21
  • 1
    The problem is not in wp-login.php, it is in update.php. Both files are WordPress files that should not cause any problems. Check update.php, restore it from a newly downloaded official zip, if it has been modified (not by you) check if your installation has been hacked. – Gerald Schneider Jan 04 '16 at 10:29

1 Answers1

-1

This is quite simple. You can't have any html output to the browser before your header function. The error tells you exactly where the html output is located.

So you have to change your script in the way you're first doing your code and header, and after that you put your html code.

  • 1
    While this true for a self written script it is completely useless in this case, as both script files involved are from WordPress and almost surely not written by the OP himself. – Gerald Schneider Jan 04 '16 at 10:30