parse error, unexpected T_IF in FILEPATH on line LINENO

20 11 2007

Steps to follow:

  • Look to the line above “LINENO” and insert the semi-colon( ; ) to end of the line.




parse error, unexpected ‘}’ in FILEPATH on line LINENO

15 11 2007

Steps to follow:

  • Look to the line above “LINENO” and insert the semi-colon( ; ) to end of the line.




junk after document element

3 11 2007
  • The source sending the XML had some bogus characters in their code.

  • PHP’s built-in XML parser reported an error to CaRP while attempting to parse the feed.

  • Tools for validating and vetting XML

  • An XML document has always a single root. Everything else other than whitespace, comments or processing instructions after the closing tag of the document element is junk.

  • A well-formed XML document must have one, and only one, top-level element. Anything after that element’s end-tag will be ignored at best, and possibly reported as an error such as the one you’re getting here.