Title: REST API PROBLEM
Last modified: July 27, 2021

---

# REST API PROBLEM

 *  Resolved [birobiro](https://wordpress.org/support/users/birobiro/)
 * (@birobiro)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-7/)
 * I’m getting this error, so i cannot add redirections, neither see which redirections
   i have made before.
 * Unexpected token < in JSON at position 979 (SyntaxError)
 * Your REST API is showing a deprecated PHP error. Please fix this error.
 * Can you please help me?
 * > `Plugin: 5.1.3 4.2
   >  WordPress: 5.8 (single) PHP: 7.4.21 Browser: Mozilla/5.0(
   > Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
   > 92.0.4515.107 Safari/537.36 JavaScript: [https://www.ibizaisla.es/wp-content/plugins/redirection/redirection.js?ver=5.1.3-81f455fc2a8faec560fb955b29f9a717](https://www.ibizaisla.es/wp-content/plugins/redirection/redirection.js?ver=5.1.3-81f455fc2a8faec560fb955b29f9a717)
   > REST API: [https://www.ibizaisla.es/wp-json/](https://www.ibizaisla.es/wp-json/)
   > Query: ?page=redirection.php&sub=support
   > Error: Unexpected token < in JSON at position 979 (SyntaxError)
   >  Raw: {“status”:[{“
   > id”:”db”,”name”:”Tablas de la base de datos”,”status”:”good”,”message”:”Est\
   > u00e1n presentes todas las tablas”},{“name”:”Grupos v\u00e1lidos”,”id”:”groups”,”
   > message”:”Detectados grupos v\u00e1lidos”,”status”:”good”},{“name”:”Grupo de
   > redirecci\u00f3n v\u00e1lido”,”id”:”redirect_groups”,”message”:”Todas las redirecciones
   > tienen un grupo v\u00e1lido”,”status”:”good”},{“name”:”Grupo de supervisi\u00f3n
   > de entradas”,”id”:”monitor”,”message”:”El grupo de supervisi\u00f3n de entradas
   > es v\u00e1lido”,”status”:”good”},{“name”:”Protocolo de portada y el sitio”,”
   > id”:”redirect_url”,”message”:”Portada y sitio son consistentes”,”status”:”good”}],”
   > debug”:{“database”:{“current”:”4.2″,”latest”:”4.2″},”ip_header”:{“HTTP_CF_CONNECTING_IP”:”
   > 81.172.43.105″,”HTTP_CLIENT_IP”:false,”HTTP_X_FORWARDED_FOR”:”81.172.43.105″,”
   > HTTP_X_FORWARDED”:false,”HTTP_X_CLUSTER_CLIENT_IP”:false,”HTTP_FORWARDED_FOR”:
   > false,”HTTP_FORWARDED”:false,”HTTP_VIA”:false,”REMOTE_ADDR”:”81.172.43.105″}}}
   > <br /> <b>Deprecated</b>: Directive ‘allow_url_include’ is deprecated in <b
   > >Unknown</b> on line <b>0</b><br />`

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-7/#post-14706961)
 * The problem is shown at the end:
 * `<b>Deprecated</b>: Directive ‘allow_url_include’ is deprecated in <b>Unknown
   </b> on line <b>0</b><br />``
 * This is from something else on your site.
 *  Thread Starter [birobiro](https://wordpress.org/support/users/birobiro/)
 * (@birobiro)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-7/#post-14711366)
 * You are right, there was a problem with my PHP. Now the problem is solved.
 * Thank you!

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

The topic ‘REST API PROBLEM’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [birobiro](https://wordpress.org/support/users/birobiro/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-7/#post-14711366)
 * Status: resolved