Back to the .php error for a moment, because my brain is strange and retrieves data at the oddest times, it may be that there are certain symbols used in your document, maybe in an author's note, that are translating as tags?
I recall someone having everything cut off after incorporating <3 into her text, and it drove us nuts until we figured it out.