Title: SyntaxError: Unexpected token
Last modified: February 8, 2024

---

# SyntaxError: Unexpected token

 *  Resolved [exrecefe](https://wordpress.org/support/users/exrecefe/)
 * (@exrecefe)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-32/)
 * Hi! The plugin was working fine a few months ago, but now I get the following
   error on mobile devices:
 * `SyntaxError: Unexpected token '<', " <!DOCTYPE "… is not valid JSON`
 * Can you help me to solve it?
   Thanks in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyntaxerror-unexpected-token-32%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [jmatiasmastro](https://wordpress.org/support/users/jmatiasmastro/)
 * (@jmatiasmastro)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-32/#post-17410579)
 * [@exrecefe](https://wordpress.org/support/users/exrecefe/)
 * Hi mate,
 * Usually, these kinds of issues are related to changes in the Instagram API and
   can be solved by deleting the token and recreating it.
 * Go to your Social Feed Gallery tab -> Accounts, delete de token and create a 
   new one.
 * If that doesn’t work, please send direct message to [https://facebook.com/quadlayers](https://facebook.com/quadlayers)
   
   Best regards, QuadLayers Support Team.
 *  Thread Starter [exrecefe](https://wordpress.org/support/users/exrecefe/)
 * (@exrecefe)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-32/#post-17410612)
 * Thank you for your response!
   I tried to renew the token but the problem persists.
   The strange thing is that it does work fine on the desktop version. I have tried
   on mobile with different browsers and the problem persists. Is it possible that
   it is due to some particular code for mobiles?
 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-32/#post-17412211)
 * Hello mate
 * For some reason your hosting provider is blocking the rest routes of the plugin
 * [https://holylemony.com/wp-json/quadlayers/instagram/frontend/user-media](https://holylemony.com/wp-json/quadlayers/instagram/frontend/user-media)
 * Please contact provider and ask to allow rest api request to the plugin routes“
   wp-json/quadlayers/instagram”
 *  Thread Starter [exrecefe](https://wordpress.org/support/users/exrecefe/)
 * (@exrecefe)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-32/#post-17412880)
 * Thank you! That was it. I was checking and one of my security plugins is blocking
   it. Do you know if the response of that json has sensitive information? I have
   noticed that some malicious IPs have been trying to make requests to the plugin
   directly, but if there is no sensitive information I can set an exception.
 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-32/#post-17413306)
 * You’re welcome!
 * There is no sensitive information, is just a json with the data to process the
   feed
 * We will really appreciate if you can leave your review here
 * [https://wordpress.org/support/plugin/insta-gallery/reviews/](https://wordpress.org/support/plugin/insta-gallery/reviews/)

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

The topic ‘SyntaxError: Unexpected token’ is closed to new replies.

 * ![](https://ps.w.org/insta-gallery/assets/icon-256x256.gif?rev=3301774)
 * [Social Feed Gallery](https://wordpress.org/plugins/insta-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insta-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insta-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/insta-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insta-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insta-gallery/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-32/#post-17413306)
 * Status: resolved