Title: REST API is showing a deprecated PHP error.
Last modified: June 28, 2021

---

# REST API is showing a deprecated PHP error.

 *  Resolved [cjclapp](https://wordpress.org/support/users/cjclapp/)
 * (@cjclapp)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-is-showing-a-deprecated-php-error/)
 * Your REST API is showing a deprecated PHP error. Please fix this error.
 * Plugin: 5.1.1 4.2
    WordPress: 5.7.2 (single) PHP: 7.4.20 Browser: Mozilla/5.0(
   Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114
   Safari/537.36 JavaScript: [http://onlinemarketingdone4you.com/wp-content/plugins/redirection/redirection.js?ver=5.1.1-accf9923c797504c858f60338da73667](http://onlinemarketingdone4you.com/wp-content/plugins/redirection/redirection.js?ver=5.1.1-accf9923c797504c858f60338da73667)
   REST API: [http://onlinemarketingdone4you.com/wp-json/](http://onlinemarketingdone4you.com/wp-json/)
   Query: ?page=redirection.php
 * Error: Failed to fetch
    we already deactivated all plugins and checked but the
   issue still remains
    -  This topic was modified 4 years, 11 months ago by [cjclapp](https://wordpress.org/support/users/cjclapp/).

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-is-showing-a-deprecated-php-error/#post-14602219)
 * Your site is incorrectly configured. It should be https, not http.
 *  Thread Starter [cjclapp](https://wordpress.org/support/users/cjclapp/)
 * (@cjclapp)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-is-showing-a-deprecated-php-error/#post-14602873)
 * I have to try to Update the HTTP to HTTPS in the Website URL and Site URL on 
   the Dashboard, it’s showing the “Fix ERR_TOO_MANY_REDIRECTS” error on the browser.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-is-showing-a-deprecated-php-error/#post-14603090)
 * This is not caused by Redirection and you may be better off speaking to your 
   hosting provider.

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

The topic ‘REST API is showing a deprecated PHP error.’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/rest-api-is-showing-a-deprecated-php-error/#post-14603090)
 * Status: resolved