Support » Fixing WordPress » rest api AND PHP

  • Resolved kat

    (@katartpics)


    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)
  • Do you connect this site with any other apps?

    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

    (@katartpics)

    Rajan V(@rajanit2000)

    payment methods: paypal stripe, klarna

    google analytics ? If that’s what you mean?

    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 2 years, 1 month ago by Rob.

    Just to add, I’m also experiencing the same message in Health Check. Interested in the follow-ups!

    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)

    (@otto42)

    WordPress.org Admin

    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

    (@katartpics)

    Well, I guess I’ll mark this as resolved then!

    Moderator Marius L. J.

    (@clorith)

    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.