This bug is being caused by the require_once() command. It should not be adding html to the browser before doing a redirect. The browser has already received headers when it then sees a redirect header. That is why it geeks out. I’m not even sure why this line of code is there since this case redirects no matter what. Take out that line and the code works fine. The line isn’t needed.