Title: error in Simple Hooks when saving functions.php
Last modified: May 5, 2018

---

# error in Simple Hooks when saving functions.php

 *  [knotions](https://wordpress.org/support/users/knotions/)
 * (@knotions)
 * [8 years ago](https://wordpress.org/support/topic/error-in-simple-hooks-when-saving-functions-php/)
 * 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](https://wordpress.org/support/users/knotions/)
 * (@knotions)
 * [8 years ago](https://wordpress.org/support/topic/error-in-simple-hooks-when-saving-functions-php/#post-10249590)
 * 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](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [8 years ago](https://wordpress.org/support/topic/error-in-simple-hooks-when-saving-functions-php/#post-10259204)
 * 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.

 * ![](https://ps.w.org/genesis-simple-hooks/assets/icon-256x256.png?rev=1335659)
 * [Genesis Simple Hooks](https://wordpress.org/plugins/genesis-simple-hooks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-simple-hooks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-simple-hooks/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-simple-hooks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-simple-hooks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-simple-hooks/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/error-in-simple-hooks-when-saving-functions-php/#post-10259204)
 * Status: not resolved