• Resolved stevebab

    (@stevebab)


    Appreciate the helpful plugins. However, I am experiencing “Invalid Content” errors on all accordion blocks after saving and reopening for editing. Essentially, Gutenberg appears to be trying to cleanup camelCase “viewBox” SVG attributes by converting them to lowercase “viewbox” – and then ADVGB fails the block, expecting them to be in camelCase.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Thanks for reaching us about the accordion block validation error.
    I’m not able to reproduce that event with our automatic environmental testing.
    Could you tell me:
    – If you’re using the Gutenberg shipped with WordPress or the plugin
    – What browser are you using?
    – Are you using the latest WordPress version?

    Thanks.

    Thread Starter stevebab

    (@stevebab)

    Latest Gutenberg (shipped with wordpress)
    Chrome (latest)
    Latest wordpress

    I am using AAM as well to manage user editing rights, however, even my users with Admin privileges are getting this error.

    I should note that as the primary user, I do not get the error. All other user accounts, Editor, Admin, etc, do get the error.

    I am able to fix it for those users by switching to code view, saving, closing the page, then going back in and switching to visual view. But when other users go to edit then save, it fails validation.

    • This reply was modified 5 years, 11 months ago by stevebab.

    Hi,

    Are you in a WordPress multisite configuration or a classic single site?

    We’ve made some search and found the problem. WordPress default role filter removes all styles that contains character justify-content, align-items… border-radius is removed by the wordPress role access so it returns an error (to your users).

    In the meantime you can try replacing the file attached: replace the file advanced-gutenberg-main.php under [advgb_root_folder]/incl/

    File link: https://drive.google.com/open?id=10cbekBPaMigJgL0gcSlDID5EnfUmF1Zv

    Let me know.

    Thread Starter stevebab

    (@stevebab)

    Thank you very much! I am using a multisite environment. I will test the patch and let you know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Accordion validation fails – “viewBox” vs “viewbox”’ is closed to new replies.