Hi @asinnema
Thanks for the info.
Your PHP warning states that on line 8 of the template file, your code is outputting some HTML before redirecting.
Can you go through your code and comment out lines to find exactly the line of code which causes text to be rendered before ACF can redirect?
Thanks
E