• Resolved benjaminsimier

    (@benjaminsimier)


    Hello,
    Since the WordPress update (6), editors (or custom roles) seem to be unable to create new posts, the error is “{“code”: “rest_forbidden”, “message”: “Sorry, you are not allowed to do that.”, “data”:{“status”:401}}”.
    However, it is possible to edit existing posts.

    If the plugin is deactivated, I have no problems
    I also use “PublishPress Capabilities” which does not seem to cause any problems.
    I use the latest plugin version for both.

    Another thing, the creation of new post seems to work when “pp unfiltered” is checked in “PublishPress Permissions” (PublishPress Capabilities plugin).

    Thank you for your help

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    Hi @benjaminsimier, I’ll need to know more about your role capabilities and Permissions configuration.

    Thread Starter benjaminsimier

    (@benjaminsimier)

    Hi @kevinb ,

    The WordPress configuration: I have created 2 CPTs, “Event” where the user can edit and create posts. And “Restaurant”, the user can’t create new post but can edit the existing post. I also created a new taxonomy “Group”.
    The idea is to create a new user role with “PublishPress Capabilities” having the permissions described above and using “PublishPress Permissions” to allow the user to view, edit, and create posts only in the “Group” taxonomy assigned to them.

    The role configuration in “PublishPress Capabilities”:
    – Post Editing Capabilities:
    — Media: Create
    Media: Create — Restaurants: Edit | Edit others | Publish | Edit published | Edit private
    — Events: Edit | Create | Edit others | Publish | Edit published | Edit private

    – Post Deletion Capabilities:
    — Events: Delete | Delete others | Delete published | Delete private

    – Post Reading Capabilities
    — Restaurants: Read private
    — Events: Read private

    – WordPress Core Capabilities:
    — edit dashboard
    — edit files
    — read
    — upload files

    The role configuration in “PublishPress Permissions”:
    For example: GroupA, GroupB, GroupC (using the taxonomy “Group” linked to “Event” and “Restaurant”).
    – Edit – Events – Limit to: User Group: GroupA
    – Edit – Restaurants – Limit to: User Group: GroupA

    About a month ago I could create posts (using the new role) and the “Group” was automatically linked to the post. But since last week, I can’t access to create a post. I tried to create a new CPT by removing the possibility to use the Gutenberg editor and it works, so I suspect a conflict with the API of the WordPress editor (Gutenberg) since the update of WordPress or the plugin “PublishPress Permissions” (if it is disabled I can create post. If only “PublishPress Capabilities” is active).

    Changing the theme to a default theme and deactivating all other plugins does not change anything.

    I hope to give you enough information so that you can help me and/or fix the plugin if it is the issue on your end.
    Thank you ??

    Hi,
    I’ve noticed simmilar problem.
    I have custom editor role with permission set to specific page.
    Here are settings:
    https://iili.io/hWuBZN.png
    If the read permission is set, user with that role has blank page on create new page attempt.
    If I delete this permission user can create new page.

    Plugin Author Kevin Behrens

    (@kevinb)

    @benjaminsimier @mklus What version of the Permissions plugin are you running?

    Plugin Author Kevin Behrens

    (@kevinb)

    @benjaminsimier You have a complicated configuration and naming a taxonomy “Group” makes it even harder to clearly discuss this issue.

    It sounds like your user is getting locked out of editing the new post because it does not have the required Group term. Try adding an “Assign Term” permission alongside the “Edit” permission. Both should be set to a “Limit to” adjustment with the same term selections.

    The Assign Term permission should case a default term to be assigned, satisfying the Edit permission.

    @kevinb PublishPress Permissions 3.7.9 on WP 6.0

    Thread Starter benjaminsimier

    (@benjaminsimier)

    @kevinb Like mklus, PublishPress Permissions 3.7.9 on WP 6.0

    Plugin Author Kevin Behrens

    (@kevinb)

    @benjaminsimier @mklus My last guidance still applies.

    Plugin Author Steve Burge

    (@stevejburge)

    Closing after 10 days with no reply.

    Please post back again if you have more feedback after debugging this.

    Hi,
    i am facing the same issue here since updating to 6.0+latest WP PP Capabilities update. OP how did you solve it, maybe that would be very helpful for me.

    Cheers!

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @tschak89

    Please open a new topic so the discussion will be much clear for everyone.

    Hi i am already in contact with publishpress support via a ticket on publishpress.com, i don′t know if it is suitable to create a new conversation here. I was just interested, if OP has a solution since i am facing the same issue.

    • This reply was modified 2 years, 7 months ago by tschak89.
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Create new post issue’ is closed to new replies.