I had the “Warning: Cannot modify header information” error and I was able to fix this issue by removing extra white space at the end of the file (after the closing tag <?> )
Followed the steps left by user CoolRunLT: https://wordpress.org/support/topic/warning-cannot-modify-header-information-headers-already-sent-15
Not sure if this is the same problem but I hope it helps someone!