• Hi – thanks for the plugin. Unfortunately there seems to be a bug in the following scenario – we create a post via a POST to wp-json/wp/v2/posts, with the following example parameters:

    
    {
    	"title": "ne1",
    	"content": "hi",
    	"status": "publish",
    	"featured_media": 89535
    }
    

    and the plugin always rejects the POST, returning:

    
    {
      "code": "wp_die",
      "message": "You cannot publish without a featured image.",
      "data": {
        "status": 500
      },
      "additional_errors": []
    }
    

    It works fine if we deactivate your plugin, correctly associating the media id with the post so, it shouldn’t be failing validation.

    Any thoughts how I can workaround this bug? We use your plugin when posting via the web UI, so would like to keep it active.

    Thanks.

    • This topic was modified 4 years, 3 months ago by arifba.
  • The topic ‘posting via wp rest api always returns “You cannot publish without…”’ is closed to new replies.