• Resolved MarcGuay

    (@marcguay)


    Hello. When I try to run an export an export or save a profile I get a 403 Forbidden error in the network tab for the request and the message “Having trouble connecting to the REST API, please ensure that it has not been disabled or altered.” appears. The REST API is functioning properly (if I visit site.com/wp-json there is data). I have disabled all plugins, including renaming the mu-plugins directory, and switched to the Twenty Twenty-Four theme. I have enabled debug logging and do not see any errors in that file. I have checked my server logs and do not see anything there either. WordPress is version 6.4.3 and WP Migrate Lite is 2.6.9. I have other sites on the same server using WP Migrate Lite without problem. Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @marcguay,

    WP Offload Media Support Team here. Thanks for reaching out with your query, we would be happy to assist!

    It’s weird that WP Migrate works on your other sites on the same server, but not this site. It could be something specific to that site.

    Could you check the .htaccess of your site to see if there are any rules blocking POST or any other methods to your REST API endpoint? The link below might help.

    https://stackoverflow.com/a/60164109

    Also, are you able to save WordPress posts or pages? WordPress uses the same /wp-json/ endpoint. If all other plugins are deactivated, and you can save posts, but get an error while using WP Migrate, that might also point to a security software on the server. You may also have to ask help from your hosting provider about the issue.

    Thread Starter MarcGuay

    (@marcguay)

    After narrowing the problem down to a relationship between cookies and the Woocommerce plugin I believe the issue was related to this Woocommerce bug: https://github.com/woocommerce/woocommerce/pull/43504.

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘403 error when exporting or saving profile’ is closed to new replies.