• Resolved toojee

    (@toojee)


    Hi,

    when I tried to activate photon or Carrousel for example I have this error :
    SyntaxError: Unexpected token < in JSON at position 0

    I look into console and I see :
    https://mysite.com/wp-json/jetpack/v4/module/photon/active in red with 403 Forbidden

    I have tried to:
    – deactivate all plugins
    – change the theme for the default wordpress theme
    – update permalink
    – I check error log and nothing usefull…

    Thx for any help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    403 Forbidden

    It would seem that something blocks your site from making REST API requests. Since the problem persists when deactivating plugins, it may be that the requests are blocked in your site’s .htaccess file, or directly by your hosting provider.

    Could you check your site’s .htaccess file, and let me know if you find any additional rules, added before or after the default WordPress rules?

    Thread Starter toojee

    (@toojee)

    Thx to you I finally find the issue!

    the htaccess was not the problem but my hosting provider yes! I was not thinking any moment at it!
    I’m on OVH.com (I’m french) and I was activated the firewall (mod_security as they said).
    Once it was deactivated I was able to activate photon then I reactivate the firewall and everything seem to work.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thanks for letting me know! I’m glad to hear you’re all set!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SyntaxError: Unexpected token < in JSON at position 0’ is closed to new replies.