Redirect returns “cannot modify header information”
-
Hello,
I was using redirects and setcookies in my website for a little while, tested it often and they all seemed to work. Now suddenly when i try to do these things i get an error.
The error:
Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/84/287576/webspace/httpdocs/bodyandmindheeze.nl/wp-content/themes/hanne/modules/header/head.php:1) in /var/www/vhosts/84/287576/webspace/httpdocs/bodyandmindheeze.nl/wp-includes/pluggable.php on line 1219I checked out the document head.php and on line 1 is the <!DOCTYPE html> tag. I’ve looked everywhere what to do about this header error, but i just can’t make it work.
I tried making a page with just a redirect to a different page in the website and that still brings up the error when all it’s doing is one simpel redirect. I don’t understand why it worked before and now giving errors and doing nothing.
What is it that needs to be changed so that setcookie and redirects work again?
Het onderwerp ‘Redirect returns “cannot modify header information”’ is gesloten voor nieuwe reacties.