-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Users without unfiltered HTML capability cannot save pages with cover image blocks without invalidating these #7706
Comments
Error message in plain text for reference:
|
I tested with WordPress 4.9.6 and Gutenberg 3.1.1 on Safari 11.1.1 on macOS 10.13.5 and did not see any problems with a test Cover Image block or any console errors.
🤔 that doesn't seem likely to me. You mentioned you're using a current version of Safari, would that be version 11.1.1? May I ask what version of macOS you are running? (I am not sure it makes a difference but I know it is good to note the version.) Does this happen on every post or page you try? If you put a Cover Image block alone on a test page and try the same test does the problem still happen? |
@nbrummerstedt are you using a multisite install by chance? See #2539. |
Hi @designsimply, Thank you for pointing me in the right direction. Actual issue Regards, |
This should have been addressed by https://core.trac.wordpress.org/changeset/43781 |
I am experiencing what seems to be the same Issue on Wordpress 5.03. I created a post as Admin and whenever I edit this post as Editor the Image gets removed and the block breaks. I am also running a multisite installation and granting the Editor the unfiltered html capability(via https://wordpress.org/plugins/unfiltered-mu/) fixes the problem. |
I tried re-testing the original reported case from this issue by adding a cover block logged in as a super_admin and also as an author role (no Don't forget to deactivate https://wordpress.org/plugins/unfiltered-mu/ while testing! If the cover block works correctly for you, then it's possible the problem lies with the custom code and I would recommend starting at either https://wordpress.org/support/forum/wp-advanced/ or https://wordpress.stackexchange.com/ to ask for help with that. If you feel strongly it's a bug, and you are able to document with steps to reproduce and some sample code either from your custom block or something similar that you can provide as an example, then it would be okay to open a new issue in this repo to ask for a check. The more clearly you can document it, the easier time someone may have helping to sort it out. In either case, I would recommend documenting the following:
|
I was under the wrong impression that this is about a custom block, sorry about the fuzz. Regarding this issue, I tested the cover block with my setup and can confirm it is working as expected. |
Describe the bug
Using a Windows computer, I am perfectly capable of creating a cover image block, assigning a background image, adding extra css classes etc. Upon saving, the page is saved correctly and can be viewed.
Opening the same page in Gutenberg on my mac (In both Safari and Chrome), everything looks fine until i Update the page. Viewing the page after Updating on a mac, the cover image is gone (the content is still there). Opening the page in Gutenberg, block validation fails, with the following console log.
I have not tried this on another Mac, or on a clean install of the OS. It might be
To Reproduce
Steps to reproduce the behavior:
1: Update a page with a Cover Image using either Safari or Chrome on a Mac
2: Reload Gutenberg Editor - Observe if block validation fails
3: View the post - Observe if the background image for the cover image block was saved.
Expected behavior
Block validation should not fail, and the image should be saved correctly.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: