For the Tesseract theme, I get the error on line 10 at the same command.
That file I have seen it in hex code and there was no extra spacing on the file. These are some of the things I have done to so far
1. I saw the header.php file in the hex code to confirm no unnecessary space
2. I took the mix of html and php page and converted everything to php code
but it always fails on the same code.
If I remove the php code but just retain the <html> code then it fails on the next php code line which is adding a meta tag with the encoding, and if I comment that too, it just errors out on the next html mixed with php (in both the cases)
I have one other website on the same host, and that works out without any issues for any theme. So, I copied that header.php file from there but even then it fails on the same location.
I was fed up of this, so I blew up the problem website and created a fresh install, but still the problem persists.
Then I decided to create another website with no wordpress, wth only simple html and php files to check, and viola it works over there without issues.
So, given this new success, I copy the entire generated html from wordpress along with wp folders (for css, images etc.) and run, I get the same error with a simple php script right at the top of the html page
<?php
session_start();
$_SESSION[“home”] = “Checking”;
echo “S ” .$_SESSION[“home”];
?>
So, I went to the generated html page and removed the language from the <html> tag and the meta tag with the character set (which was utf-8), now it works without an error.
Previously when these warnings were occurring somebody said that these are just warnings so don’t bother, so I decided to ignore and continue, and one fine day, the web pages could not retrieve the session variables at all, and my webpages failed completely.
So, I’m skeptical to ignore these warnings now.
I’m very tired now, so any pointers I would hugely appreciate.