8
I've just had this same Fatal Error problem with header.php (line 35) on one of our sites after re-locating it.
First thing I did was come here and search like mad to find a solution. Nothing I found helped. Then after I stopped crying I sat down to clear my head.
![](https://xoops.org/uploads/smil42e7a3d4c7b9f.gif)
...
Of course, it was a user error. When I had REM'd out the Protector stuff in mainfile.php I had also accidentally REM'd out the lines IN BETWEEN (Protector users will know what I am talking about here). A closer inspection of mainfile.php also revealed a path error with protector too (that would have caused errors later).
So ALWAYS double check your mainfile.php for errors again and again. If you still have problems then try re-creating a new mainfile.php file from the mainfile.dist.php that you will also find in your web root (this FORCES you to THINK about every entry).
Hope this helps someone else one day who is searching like mad.
![](https://xoops.org/uploads/smil3dbd4d6422f04.gif)
PS. Another really stoOpid mistake that took me ages to work out: I also forgot to add the MySQL user to the MySQL database. But that's another story.