xxxxxxxxxx
/// all I did to solve this problem is put the header at the first line
include './header.php';
<?php
if(isset($_POST['search'])){
$search = $_POST['searchcontent'];
header('location:./search.php?post=$search');//this is the header part error
}
include './header.php';
?>
xxxxxxxxxx
Solution:
$msg_email = 'Email enviado com sucesso!';
header('Location: ../login.php?msg_email=' . $msg_email);
$mail->send();
Error - Cannot modify header information - headers already sent by :
$mail->send();
$msg_email = 'Email enviado com sucesso!';
header('Location: ../login.php?msg_email=' . $msg_email);
xxxxxxxxxx
In WordPress, check for a PHP version update, if you are losing the latest PHP version, revert back to an old PHP version, upgrade you WordPress version to the latest, then update again to the latest PHP verion.