• Resolved John Brown

    (@alihan1988)


    Hi PublishPress Team,

    I wanted to share an issue I recently encountered when using PublishPress Capabilities and Permissions together with ACF Pro. The ProblemUsers with my custom role “leader” were getting the error “Sorry, you are not allowed to edit posts as this user” when trying to edit posts they didn’t create, even though I had set proper permissions in PublishPress. This only happened when ACF was active.

    Our Solution
    After much troubleshooting, we found a workaround by adding a simple function that automatically changes the post author to the current user when they open the edit screen. This lets them edit the post without needing broad “edit_others_posts” permission.

    Additional Issue
    I also noticed that when “Assign” is unchecked under “Term Taxonomies Capabilities”, editing a post causes its category to reset to the first category in the list.

    Could you please look into these interactions between ACF and PublishPress permissions? While our workaround is functioning, it would be ideal if these plugins could work together without such custom modifications.

    Thanks for your great plugins and support!

    Best regards, J.

    Active(all) Plugins List:

    • ACF OpenStreetMap Field
    • Activity Log
    • Admin Columns
    • Advanced Custom Fields PRO
    • Armanet
    • bbP private groups
    • bbPress
    • bbPress Login Register Links On Forum Topic Pages
    • Better Search Replace
    • Classic Editor
    • Contact Form 7
    • Content Control
    • Custom Post Type UI
    • Disable Author Archives
    • Imsanity
    • Login With Ajax
    • PDF Embedder
    • PublishPress Capabilities
    • PublishPress Permissions
    • reCaptcha by BestWebSoft
    • Redirection
    • Regenerate Thumbnails
    • Simple Custom CSS and JS
    • Simple Lightbox
    • Site Kit by Google
    • User Switching
    • WP Crontrol
    • WP File Manager
    • WP Mail Logging
    • Yoast Duplicate Post
    • Yoast SEO

    (all up-to-date)

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @alihan1988

    Thanks for your questions.

    Usually the issue related to integration is part of our Pro support. Do you have any subscription in our plugin? If so, you could open a ticket on https://publishpress.com/new-support-ticket/ so our developer could check it further?

    Thanks,

    Similar problem here with ACF enabled and PublishPress Authors plugin. Error I get is “Updating failed. Sorry, you are not allowed to edit the _acf_changed custom field.”. The capability being checked is edit_post_meta. To check that, wp runs that though map_meta_cap(). That function looks up the post and checks the $post->post_author. Perhaps this is what is happening where the capability is being checked to the post object and there is no filter correcting it.

    @rizaardiyanto are you able to confirm that these issues are fixed in the Pro version of the plugins?

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @crobbinsdg Let me check on the Pro version.

    Can you tell me the steps to replicate the issue? Also what ACF field is it? Just regular Text, WYSIWYG or else?

    Thanks,

    crobbinsdg

    (@crobbinsdg)

    @rizaardiyanto The error occurs when using ACF blocks for Gutenberg. Good point on the field types. Looks like text, wysiwyg and image. However when I was testing I was changing the value of a wysiwyg field. I’ll spin up another test on a fresh site just to be sure.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @crobbinsdg How can I get ACF blocks for gutenberg? Is it only exist in the Pro version?

    Thread Starter John Brown

    (@alihan1988)

    Hi @rizaardiyanto

    I disagree with you on this point. ACF is not a typical plugin. It is actively used on millions of websites. Also, this is not an integration problem, it is a plugin bug.

    If you’re not interested in my message about both the problem and the solution, I won’t continue.

    (I also wrote to your site and they redirected me to the support forum)

    Thanks

    Plugin Author Steve Burge

    (@stevejburge)

    @alihan1988 We’re not allowed to support commercial plugins here on the WordPress forums: https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products. They ask us to support premium products in our own support areas. You have an ACF Pro membership – have you asked for their support for their input on this? If they find a specific issue and can report it, we can act.

    @crobbinsdg Thanks for the details. Please let us know what you find.

    crobbinsdg

    (@crobbinsdg)

    Agreed. Yes this is ACF Pro issue since it is with blocks. I’ll post the bug on github.

    • This reply was modified 1 month ago by crobbinsdg.
    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Thanks @crobbinsdg

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.