Title: Error : Unexpected token &#8216;&lt;&#039;, &quot; Snippets code
Last modified: June 15, 2026

---

# Error : Unexpected token ‘<', " Snippets code

 *  [falizeblondel](https://wordpress.org/support/users/falizeblondel/)
 * (@falizeblondel)
 * [1 day, 2 hours ago](https://wordpress.org/support/topic/error-unexpected-token-snippets-code/)
 * Hello,
 * I have been experiencing a very frustrating issue with WP Extended for several
   months.
 * I can still create new snippets without any problem. However, once a snippet 
   has been created, I am unable to:
    - Enable the snippet
    - Update the snippet
    - Delete the snippet
 * Every time I attempt one of these actions, I receive the following error:
 * **Unexpected token ‘<‘**
 * ![](https://i0.wp.com/i.ibb.co/XZF0BZ4h/image.png?ssl=1)
 * What makes this issue particularly strange is that snippet creation works perfectly,
   but any attempt to modify, enable, or delete an existing snippet consistently
   fails.
 * As a workaround, I have to connect via FTP and manually delete the files from
   the **wpextended-snippets** directory before recreating the snippets through 
   the interface. As you can imagine, this makes maintenance extremely time-consuming
   and cumbersome, especially for simple code changes, considering that I currently
   have around ten active snippets.
 * I have already performed numerous tests to try to identify the cause of the issue:
    - Checked whether the REST API was being blocked.
    - Completely disabled Wordfence.
    - Disabled all caching on the website.
    - Disabled several other plugins that could potentially cause conflicts.
    - Performed various compatibility and cookie-related troubleshooting tests.
 * Despite all these efforts, the **“Unexpected token ‘<‘”** error continues to 
   occur.
 * I may have overlooked something. Do you have any suggestions regarding the possible
   cause of this issue, or could you recommend a more advanced troubleshooting procedure?
 * If necessary, I can provide:
    - Browser console logs
    - Network tab errors/responses
    - Information about my WordPress environment
    - The current version of WP Extended that I am using
 * Thank you in advance for your assistance.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [tdrayson](https://wordpress.org/support/users/tdrayson/)
 * (@tdrayson)
 * [1 day, 2 hours ago](https://wordpress.org/support/topic/error-unexpected-token-snippets-code/#post-18938392)
 * Hey [@falizeblondel](https://wordpress.org/support/users/falizeblondel/) sorry
   to hear about this issue.
 * Are you able to share the snippet code you used and also what code language you
   selected please
 *  Thread Starter [falizeblondel](https://wordpress.org/support/users/falizeblondel/)
 * (@falizeblondel)
 * [1 day, 1 hour ago](https://wordpress.org/support/topic/error-unexpected-token-snippets-code/#post-18938399)
 * This issue affects every single code snippet, regardless of whether it contains
   JavaScript, CSS, or HTML. All snippets are affected without exception.
 * Once a snippet has been created, I cannot edit it, enable it, or delete it through
   the plugin. The only way to remove a snippet is to manually delete its file via
   FTP.
 *  [tdrayson](https://wordpress.org/support/users/tdrayson/)
 * (@tdrayson)
 * [1 day, 1 hour ago](https://wordpress.org/support/topic/error-unexpected-token-snippets-code/#post-18938432)
 * Would you be able to share login details via email to [support@wpextended.io](https://wordpress.org/support/topic/error-unexpected-token-snippets-code/support@wpextended.io?output_format=md)
   please so we can take a further look.
 *  Thread Starter [falizeblondel](https://wordpress.org/support/users/falizeblondel/)
 * (@falizeblondel)
 * [1 day ago](https://wordpress.org/support/topic/error-unexpected-token-snippets-code/#post-18938540)
 * Hello,
 * Thank you for your reply.
 * Unfortunately, for security and compliance reasons, I am not able to provide 
   my WordPress login credentials.
 * This website is a professional corporate website owned by the company where I
   am employed, and I am not authorized to share administrator access with third
   parties. If any issue were to occur following the disclosure of these credentials,
   I would be held directly accountable.
 * For this reason, I must decline the request to provide direct access to the website.
 * I would still be delighted if you could help me investigate this issue, and I
   will gladly provide any information, logs, screenshots, or diagnostic data you
   may require to assist with the troubleshooting process, including :
    - Browser console logs
    - Network requests and responses (HAR file if required)
    - WordPress debug logs
    - Server error logs
    - Screenshots or screen recordings
    - Information about my WordPress environment and installed plugins
 * If there are any specific files, API responses, or diagnostic outputs you would
   like me to collect, please let me know and I will do my best to provide them.
 * Thank you for your understanding.
    -  This reply was modified 1 day ago by [falizeblondel](https://wordpress.org/support/users/falizeblondel/).

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-unexpected-token-snippets-code%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wpextended/assets/icon-256x256.png?rev=2922737)
 * [WP Extended - The Ultimate WordPress Toolkit](https://wordpress.org/plugins/wpextended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpextended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpextended/)
 * [Active Topics](https://wordpress.org/support/plugin/wpextended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpextended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpextended/reviews/)

## Tags

 * [unexpected token](https://wordpress.org/support/topic-tag/unexpected-token/)

 * 4 replies
 * 2 participants
 * Last reply from: [falizeblondel](https://wordpress.org/support/users/falizeblondel/)
 * Last activity: [1 day ago](https://wordpress.org/support/topic/error-unexpected-token-snippets-code/#post-18938540)
 * Status: not resolved