• Resolved yewzy

    (@yewzy)


    Users with the role of author are unable to set featured images in posts. I am able to replicate this in a fresh installation of WordPress (no plugins, 2021 theme).

    There are two errors in the console:

    api-fetch.min.js?ver=5f98b08f212ba8fa8b4685ad2e1b1378:2 GET https://dev.msiachild.org/wp-json/wp/v2/media/16?context=edit&_locale=user 403

    Uncaught (in promise) 
    {code: "rest_forbidden_context", message: "Sorry, you are not allowed to edit this post.", data: {…}}
    code: "rest_forbidden_context"
    data:
    status: 403
    __proto__: Object
    message: "Sorry, you are not allowed to edit this post."
    __proto__:
    constructor: ? Object()
    hasOwnProperty: ? hasOwnProperty()
    isPrototypeOf: ? isPrototypeOf()
    propertyIsEnumerable: ? propertyIsEnumerable()
    toLocaleString: ? toLocaleString()
    toString: ? toString()
    valueOf: ? valueOf()
    __defineGetter__: ? __defineGetter__()
    __defineSetter__: ? __defineSetter__()
    __lookupGetter__: ? __lookupGetter__()
    __lookupSetter__: ? __lookupSetter__()
    get __proto__: ? __proto__()
    set __proto__: ? __proto__()

    Edit: Some other stuff I’ve tried:

    I’ve enabled Cloudflare’s development mode to bypass the cache;
    I’ve updated the 2021 theme.

    My Php Version is 7.4.8

    • This topic was modified 4 years, 2 months ago by yewzy.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Author role unable to set featured image (Error 403)’ is closed to new replies.