This error message has the ability to drive some developers completely insane. However, the solution to this error is A LOT easier than you think.
The error:
What to do
- Identify the file where the error originates from. This is stated in the actual error. In this case it is “functions.php”, not “theme-editor.php”
- Remove the white spaces before the “<?php” or “<?” tags as well as after the “?>” tag.
Believe it or not, you are done. Easy as pie.
yeah, I have come across that before, crazy – and even worse; in a plugin
That error was driving me crazy when I first started PHP. It’s quite a common error