Title: E_PARSE error?
Last modified: August 5, 2021

---

# E_PARSE error?

 *  [darkmatter661](https://wordpress.org/support/users/darkmatter661/)
 * (@darkmatter661)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/e_parse-error-2/)
 * Got a warning from my site of a critical error related to this plugin:
 * An error of type E_PARSE was caused in line 47 of the file /home/xxxxx/j2medicalsupply.
   com/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(221):
   eval()’d code. Error message: syntax error, unexpected ‘}’, expecting end of 
   file
 * Had to turn off 3 snippets, that had been working fine, to try and correct the
   issue.
 * This is the line it’s referring to:
 *     ```
       /* Add New Snippet menu */
       		$this->add_menu(
       			code_snippets()->get_menu_slug( 'add' ),
       			_x( 'Add New', 'menu label', 'code-snippets' ),
       			__( 'Add New Snippet', 'code-snippets' )
       		);
       	}
       ```
   
 * Can you shed light on this?
    -  This topic was modified 4 years, 10 months ago by [darkmatter661](https://wordpress.org/support/users/darkmatter661/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/e_parse-error-2/#post-14745372)
 * This error is originating from one of your snippets – the file and line displayed
   are a little misleading.
 * The problem is that one of the snippets’ code is missing a `}` on the end. Unfortunately,
   I can’t tell the snippet’s name or ID from the error, but it’s one that’s around
   47 lines long.

Viewing 1 replies (of 1 total)

The topic ‘E_PARSE error?’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/e_parse-error-2/#post-14745372)
 * Status: not a support question