Support » Plugin: Code Snippets » 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

    (@bungeshea)

    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.