Whose Error Is It?
PHP printed this
Parse error: syntax error, unexpected '}'
What it meansThe PHP parser hit a closing brace where it did not expect one, so the file has unbalanced braces or a broken statement above it.
The first thing to checkLook at the lines just before the reported line for a missing semicolon, parenthesis, or an extra brace; an editor with bracket matching helps.