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 ‘<‘

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.
You must be logged in to reply to this topic.