Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Issue in Elements with editors

  • We’ve identified a critical bug in the Elements module that is causing data loss for our Editors.

    The Issue: When an Editor attempts to use the Exclude tab, the interface gets stuck on a loading spinner. If the Editor saves the page while this is happening, any existing data in the “Exclude” field is automatically deleted.

    Technical Details: The console is reporting a TypeError in metabox.js: Uncaught TypeError: Cannot read properties of undefined (reading ‘objects’) at fillObjects (metabox.js?ver=2.5.5:143:43)

    It appears the fillObjects function is failing to handle an undefined response, preventing the exclude list from rendering and subsequently wiping the field on save.

    Could you please look into this as a priority to prevent further data loss?

  • Hi there.

    Editors should not have access to the Elements module by default. Are you using a permissions plugin to give them access?

  • Elements go trough a post type as Im familiar.

    create_posts
    delete_others_posts
    delete_posts
    delete_private_posts
    delete_published_posts
    edit_others_posts
    edit_posts
    edit_private_posts
    edit_published_posts
    publish_posts
    read_private_posts

    They have everything except Create Post (for Elements).

    OR if im missing some capipability let me know.

  • Ok, you will need to elevate the editor role’s permissions, Here is a filter you could use:

    https://generatepress.com/forums/topic/add-update-elements-for-specific-user-role/page/3/#post-1403186

  • Thanks! That did the trick.

  • That’s great!

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