I have found that when you get those types of php errors.
Just because it says say line 46 it could be line 45 or 47.
It all has to do with where the statement really ends.
Glad you got it working.
Hopefully you did not have some customization to the faq file.