After 2 days of searching for the solution, i went back to check the last file i commited to github before the error started, i discovered it was white space before <?php.