Welcome to Geeklog Thursday, October 21 2021 @ 03:01 pm EDT

Question: Parse error in ...

Answer: A parse error usually hints at a typo you've made. Check the file at the line given in the error message (the actual error may be in the line preceding the one mentioned in the error message).

Common problems are:

  • not enclosing paths in single quotes properly
  • missing semicolon at the end of the line
  • using single quotes within a string (you need to write Joe's Site as Joe\'s Site, escaping the extra quote)


A related issue are parse errors caused by a corrupted lib-common.php. This is covered in the troubleshooting section of the installation instructions.

FAQ » Common problems » Parse error in ...