• Cannot change Jetpack settings, get the error: …. failed to activate. TypeError: Failed to fetch

    My admin backend is HTTPS
    I turned on the developer tool and looked at the network tab and noticed that

    http://….com/wp-json/jetpack/v4/connection/url is blocked.
    http://….com/wp-json/jetpack/v4/site is blocked.
    http://….com/wp-json/jetpack/v4/settings is blocked.
    http://….com/wp-json/jetpack/v4/settings is blocked

    {“code”:”invalid_user_permission_jetpack_disconnect”,”message”:”You do not have the correct user permissions to perform this action.\n\t\t\tPlease contact your site admin if you think this is a mistake.”,”data”:{“status”:401}}

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

    (@jeherve)

    Jetpack Mechanic 🚀

    Do you use a plugin that may restrict or block access to the REST API on your site? Some security plugins have such an option, for example.

    If so, could you try to deactivate said plugin, and let me know how it goes?

    Thread Starter rotcorp

    (@rotcorp)

    I use wordfence and the only thing i see is “Prevent discovery of usernames through ‘/?author=N’ scans, the oEmbed API, and the WordPress REST API ” would that be the culprit?

    Thread Starter rotcorp

    (@rotcorp)

    I see the following message:

    admin.js?ver=4.6:9 Mixed Content: The page at ‘https://www.#######.com/wp-admin/admin.php?page=jetpack#/settings’ was loaded over HTTPS, but requested an insecure resource ‘http://www.######.com/wp-json/jetpack/v4/connection/url’. This request has been blocked; the content must be served over HTTPS.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    was loaded over HTTPS, but requested an insecure resource ‘http://www.######.com/wp-json/jetpack/v4/connection/url’. This request has been blocked; the content must be served over HTTPS.

    That’s helping, thank you.

    Could you go to Settings > General in your dashboard and make sure that both your site URL and the WordPress Site address settings are set to use HTTPS? That should solve the issue.

    If you still experience issues, could you tell me more about your site setup? Is it a single site or a multisite network? Do you use plugins to force HTTPS on your site? Do you have any rules in .htaccess to create redirections from HTTP to HTTPS?

    Thank you.

    Thread Starter rotcorp

    (@rotcorp)

    I’m using the WordPress plugin: WordPress HTTPS that forces only the admin section to https. Everything was working fine until recently.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Could you post your site URL here, so I can have a look?

    If you want it to remain private, you can also contact us via this contact form:
    http://jetpack.com/contact-support/

    Thread Starter rotcorp

    (@rotcorp)

    I sent the information via the contact form

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

The topic ‘Error: failed to activate. TypeError: Failed to fetch’ is closed to new replies.