Error:
Warning: Cannot modify header information – headers already sent by
(output started at /home/ya3mblog/public_html/wp-login.php:59) in
/home/ya3mblog/public_html/wp-includes/pluggable.php on line 866website: ipublisharticles.com Error is at:
ipublisharticles.com/wp-login.php?action=register
It’s preventing user registration using the proper method.
Add this code in
wp-config.php
on the first line:See How_do_I_solve_the_Headers_already_sent_warning_problem? > FAQ Troubleshooting « WordPress Codex
Open the file with a plain text editor (like Notepad or BBEdit) and clear out the white space. Check that the very first characters are
<?php
and the very last characters are either NOT a PHP closing tag, or a closing tag
?>
with no blank lines or spaces after it. (FYI, a PHP file can run fine without the closing?>
tag.)When saving, be sure the file encoding is not UTF-8 BOM but plain UTF-8 or any without the BOM suffix.
And:
remove the excess blankspace /home/ya3mblog/public_html/wp-login.php in line 59.
In my case happened because from the WordPress Rest API in the functions I was ending the job by doing
instead of the simple:
Changing that.. worked!