Home › Forums › Front-end Issues › Error when creating new post › Reply To: Error when creating new post
The error appears when a page is trying to redirect to another but there has already been content outputted to the current page, for example:
<html>
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>
The “html” tag has already been output so the page will error when trying to redirect. Check if this is happening at all in your code
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.