Title: Error accessing the WP REST API
Last modified: November 6, 2024

---

# Error accessing the WP REST API

 *  Resolved [novakpeter](https://wordpress.org/support/users/novakpeter/)
 * (@novakpeter)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-accessing-the-wp-rest-api/)
 * I can not activate the plugin. I have every time an error visible in the plugin
   and console: “POST [https://domain.com/wp-admin/admin-ajax.php](https://domain.com/wp-admin/admin-ajax.php)
   400 (Bad Request).” No idea what is the problem, I use PHP 8.0 maybe it is incompatible?
   I don’t know.

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

 *  Plugin Support [MixHa](https://wordpress.org/support/users/mixha/)
 * (@mixha)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-accessing-the-wp-rest-api/#post-18119655)
 * Hello [@novakpeter](https://wordpress.org/support/users/novakpeter/) ,
 * The issue may be caused by another plugin that’s conflicting with our plugin’s
   code. You can check this by deactivating other plugins one by one, in elimination
   system. In case you detect the culprit this way, please let us know which one
   was it.
 * Otherwise, please ensure that you insert privileges on the database.
 *  Plugin Support [MixHa](https://wordpress.org/support/users/mixha/)
 * (@mixha)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-accessing-the-wp-rest-api/#post-18122225)
 * Hey [@novakpeter](https://wordpress.org/support/users/novakpeter/), by “insert
   privileges”, I meant this:
 * Some hosting providers sometimes impose restrictive permissions on the database,
   such as removing the INSERT privilege from a user, which can prevent plugin activation.
 * Please let me know if the issue was resolved.
 * Kind regards
 *  Plugin Support [MixHa](https://wordpress.org/support/users/mixha/)
 * (@mixha)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/error-accessing-the-wp-rest-api/#post-18131985)
 * Hey [@novakpeter](https://wordpress.org/support/users/novakpeter/) ,
 * We haven’t heard from you since, so I’ll assume that the issue is resolved and
   will close this support thread. If you face any new issues, please feel free 
   to open a new thread.
 * Kind regards
 *  Thread Starter [novakpeter](https://wordpress.org/support/users/novakpeter/)
 * (@novakpeter)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/error-accessing-the-wp-rest-api/#post-18133349)
 * Hi, the problem was W3 Total Cache plugin. It was a part of my WordPress install.
   Not sure if it is now packed with WordPress like a sort of a promo or my hosting
   added it. I immediately deactivated the W3 Total Cache plugin but when I worked
   on the web I have seen occasionally weird errors. After some time when I did 
   not see some changes immediately, I was suspicious that it looks like some kind
   of broken caching. So I deleted W3 Total Cache completely. Weirdly enough, the
   plugin did not uninstal itself properly and left some files and folders behind(
   oh man, what a mess). After I deleted completely all these remains, these weird
   errors dissapeared so it is now solved for me.

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

The topic ‘Error accessing the WP REST API’ is closed to new replies.

 * ![](https://ps.w.org/copy-delete-posts/assets/icon-128x128.png?rev=2997966)
 * [Duplicate Post](https://wordpress.org/plugins/copy-delete-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/copy-delete-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/copy-delete-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/copy-delete-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/copy-delete-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/copy-delete-posts/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [novakpeter](https://wordpress.org/support/users/novakpeter/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/error-accessing-the-wp-rest-api/#post-18133349)
 * Status: resolved