Title: PHP Parse syntax errors in error log.
Last modified: March 31, 2017

---

# PHP Parse syntax errors in error log.

 *  [Brand Basket](https://wordpress.org/support/users/silentprints/)
 * (@silentprints)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-parse-syntax-errors-in-error-log/)
 * Hi,
 * My site displays and functions as it should, yet
    I’m getting the following PHP
   Parse error in my log file:
 *  syntax error, unexpected ‘.’ /wp-content/plugins/code-snippets/php/snippet-ops.
   php(384) : eval()’d code on line 37
 * I have approx. 30 snippets and no errors occurred when creating or activating
   any of them. I’m sure I can deactivate each one until the error stops, but any
   assistance you could offer in tracking down this issue before that, would be 
   appreciated.
 * Thanks for your time and effort.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-parse-syntax-errors-in-error-log/#post-8983760)
 * Unfortunately, snippet errors don’t really give off much information as to which
   snippet is the source of the error – I’ve tried to improve this, but I’m a bit
   limited by how PHP’s error reporting works.
 * One clue that this error message does provide is that the error occurs on line
   37 of a snippet – so you’re looking for a snippet at least 37 lines long. There
   isn’t much more information pointing to the identity of the snippet, I’m afraid.
 * Also, possibly the reason as to why you didn’t receive an error when activating/
   editing the snippet is that the display errors setting on your server is turned
   to off. Doing so essentially causes snippets to fail silently on warnings and
   minor errors.
 * Good luck hunting down the problem snippet!

Viewing 1 replies (of 1 total)

The topic ‘PHP Parse syntax errors in error log.’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/php-parse-syntax-errors-in-error-log/#post-8983760)
 * Status: not a support question