Hi exkite,
That's a typical message when when you have a missing closing (, {, [, etc. etc.. Usually a {, in fact. Regardless, it was opened and never closed, so the search goes all the way to the end of the page looking for the closure, never finds it, and thus throws an error or warning etc. You should IMO start by counting / checking EVERY open for a related close. closing Parens and curly brackets are almost always the culprit, and much earlier in the code.
PHP only defines the line number of where it failed; in this case the end of the file. A meaningless line number in a case such as this.
HTH,
Rivet`