• This is the error:

    Your PHP code changes were rolled back due to an error on line 10 of file wp-content/plugins/genesis-simple-hooks/genesis-simple-hooks.php(186) : eval()’d code. Please fix and try saving again.

    syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN)

    I’m sure it’s in my code in Simple Hooks but I don’t know what’s causing it. And it must have happened a while ago because I haven’t made changes in a long time so I don’t know what change is causing it.

    I’m running the latest Simple Hooks (v 2.2.1).

    Do you know why I’m getting this error?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter knotions

    (@knotions)

    I found the error – I had an extra double quote somewhere. But I’m still curious how I can know where the error is. I had to just check the syntax in every event but there must be a better and more efficient way to do this.

    How can I know where the error is?

    Plugin Support Andrea Rennick

    (@andrea_r)

    Write your code in a code editor first, before typing it up in any of the Simple Hooks boxes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error in Simple Hooks when saving functions.php’ is closed to new replies.