Title: syntax error, unexpected token /
Last modified: June 14, 2023

---

# syntax error, unexpected token /

 *  Resolved [estereofonico](https://wordpress.org/support/users/estereofonico/)
 * (@estereofonico)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-token-4/)
 * I’m new in this plugin but I’ve have done a lot of work with other plugins. When
   I try to publish a new class to create a new widget, I get this error: syntax
   error, unexpected token /
   For my surprise the / was added by the wpcode. The 
   error gets funny after the input and adds a / on every line with this model of
   code.
 *     ```wp-block-code
       <input id="<?php echo $this-/>get_field_id( 'title' ); ?>"
       ```
   
 * How can I fix this?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-token-4/#post-16820561)
 * Hi [@estereofonico](https://wordpress.org/support/users/estereofonico/),
 * Can you please confirm that you are using the latest version of the plugin (2.0.12)?
   We had some issues in older versions with code getting escaped when it shouldn’t.
 * If you are using the latest version, can you please share more of the code which
   generates this issue? With a simple version of what you shared above we are not
   able to replicate it.
 * If you want to share the code privately please use the form at [https://wpcode.com/contact](https://wpcode.com/contact)
   to reach out to our support.

Viewing 1 replies (of 1 total)

The topic ‘syntax error, unexpected token /’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-token-4/#post-16820561)
 * Status: resolved