If it helps anyone else I had the exact same problem and after reading CamWheeler’s reply I tried deleting and reuploading my files one at a time. When I uploaded “wp-blog-header.php” in the root folder the error went away. I guess that means it was something inside that file that was popping the error.