Title: rest api AND PHP
Last modified: January 14, 2019

---

# rest api AND PHP

 *  Resolved [kat](https://wordpress.org/support/users/katartpics/)
 * (@katartpics)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/)
 * Hi, I use Printful integration with my woocommerce shop. I have NO idea, if this
   is the right place to post- I always seem to post in wrong places. I know no 
   code. My health check gave me this morning the following:
 * REST API availability The REST API call gave the following unexpected result:(
   401) {“code”:”rest_forbidden_context”,”message”:”Sorry, you are not allowed to
   edit posts in this post type.”,”data”:{“status”:401}}.
 * My shop seems to working ok and at Printful’s site everything is fine.
 * What does this actually mean this error code? I also had the following concerning
   my PHP:
 * PHP Extensions
 *  The optional module, libsodium, is not installer, or has been disabled.
    The
   optional module, imagick, is not installer, or has been disabled.
 * My shop seems to work ok, and I’ve contacted my host provider about the PHP.

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

 *  [Rajan Vijayan](https://wordpress.org/support/users/rajanit2000/)
 * (@rajanit2000)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11086227)
 * Do you connect this site with any other apps?
 *  [iaeon](https://wordpress.org/support/users/iaeon/)
 * (@iaeon)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11086804)
 * I am also getting this message on all my Plesk hosted sites this morning following
   the upgrade to 1.2.4 of the health check plugin.
 * I am able to edit posts and pages with Gutenberg. Everything with REST seems 
   to be working OK as as I can tell. What does the message mean?
 *  Thread Starter [kat](https://wordpress.org/support/users/katartpics/)
 * (@katartpics)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11086926)
 * Rajan V(@rajanit2000)
 * payment methods: paypal stripe, klarna
 * google analytics ? If that’s what you mean?
 *  [Rob](https://wordpress.org/support/users/rob70/)
 * (@rob70)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11087061)
 * After health check update, my health check gave me this morning the following:
   
   REST API availability The REST API call gave the following unexpected result:(
   401) {“code”:”rest_forbidden_context”,”message”:”Sorry, you are not allowed to
   edit posts in this post type.”,”data”:{“status”:401}}.
 * I also get the same message from health check
    -  This reply was modified 7 years, 9 months ago by [Rob](https://wordpress.org/support/users/rob70/).
 *  [preclicked](https://wordpress.org/support/users/preclicked/)
 * (@preclicked)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11087218)
 * Just to add, I’m also experiencing the same message in Health Check. Interested
   in the follow-ups!
 *  [agenciesFirst](https://wordpress.org/support/users/agenciesfirst/)
 * (@agenciesfirst)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11088001)
 * the same to me!
 * PHP Extensions
    The optional module, libsodium, is not installer, or has been
   disabled. The required module, mcrypt, is not installer, or has been disabled.
 * REST API availability The REST API call gave the following unexpected result:(
   401) {“code”:”itsec_rest_api_access_restricted”,”message”:”Du hast keine ausreichenden
   Berechtigungen, um auf diesen Punkt zuzugreifen. Der Zugriff auf die REST-API-
   Anfragen ist durch die Einstellungen von iThemes Security eingeschr\u00e4nkt.”,”
   data”:{“status”:401}}.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11088933)
 * This appears to be some kind of problem with the Health Check plugin itself. 
   Pay it no mind for now, the relevant people have been alerted to the issue.
 *  Thread Starter [kat](https://wordpress.org/support/users/katartpics/)
 * (@katartpics)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11090083)
 * Well, I guess I’ll mark this as resolved then!
 *  Moderator [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11090264)
 * Thank you for the heads up on this. I see why it’s happening and am working on
   a patch, it should be resolved with the next plugin release, I’m not 100% certain
   when that is, but it shouldn’t be too far away since this incorrect result isn’t
   very helpful in diagnosing potential issues.

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

 The topic ‘rest api AND PHP’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 8 participants
 * Last reply from: [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/rest-api-and-php/#post-11090264)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
