-
Notifications
You must be signed in to change notification settings - Fork 57
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
Videos added/edited on the web don't load in mobile editor #1152
Comments
This issue occurred on a WordPress.com Simple site with the Premium plan. @pinarol let me know that there's a known issue with how the video block code is handled for sites on that plan (internal ref: pafL3P-pg-p2), which is the likely cause for both problems I saw. |
Hi @rachelmcr, I would split this problem into 2 parts.
@hypest is ⬆️agreement still ok for us?
cc: @frosty |
Hey @rachelmcr @frosty, just to let you know that it's a known issue and it doesn't have high priority |
Updating to say we were contacted about this by a user in #2900144-zen |
Looking into this it appears that SimpleSites on a premium plan are creating video blocks with the following pattern which wraps the video URL in a
Where an atomic site I'm using produces this syntax which wraps the URL in a
I'm currently working on revisiting the block registration to handle these cases. |
Describing the issue helped me better understand @marecar3 comment here:
I'll sync up with him to see if there are any options to prevent the apps from overwriting what the web has. As for the issue here for people like me who may have overlooked it. This configuration results in a |
After discussing some options with others it looks like support for this is being tracked by Automattic/jetpack#12358 and work is underway to better handle the case when the block fails validation WordPress/gutenberg#15674. The work that's being done in the parser should help provide a better experience |
👋 @chipsnyder, can you expand on the options discussed, or link me to related convos? I'm thinking, now that we have the ability to separate .com from .org code, maybe we can address this by incorporating the "Jetpack" side block too. |
Hey @hypest. I think there are some internal documents that capture parts of these options but I'm failing to uncover a combined explanation.
|
Ps. There is worked started that seems to be going down the path of (3) mentioned here however that work seems to have stalled. Here is the PR and Issue I'm referring to: |
I wonder, now that we have the Unsupported Block Editor in place, perhaps we could enable it for the video block by somehow detecting the situation with the Calypso treatment of the video block? Pinging @guarani in case you have some thoughts on this since you've worked on the UBE in the past. |
I did a quick test and was able to reproduce this issue. Looking at the UBE, it might work to allow users to edit these video blocks that have been edited on the web, but unless we also update the UI to assure users that the Video block is not "unsupported", this could lead to user confusion. So as-is, the UBE doesn't feel like a drop-in temporary solution, unless we modify it for this use case. Is the alternative to add support for |
AFAIK, Jetpack isn't actually registrering a new block type, it's just overrides the That said, the judging from the movements in Automattic/jetpack#12358, looks like that ticket is now in a prioritized list (at the time I'm writing this comment anyway) so, perhaps work on revising that Jetpack implementation will resume soon. |
We have a user reporting this issue here: 5375141-zen
|
This was resolved in Automattic/jetpack#24548 and will be further improved with some upcoming work on the Video block. |
Expected: The video blocks will load (or at least the video block with no caption will load).
Actual: The error “Problem displaying block” appears instead for both blocks.
Saving the post in the app and trying to open it again on the web results in an error on that end: “This block contains unexpected or invalid content.”
I also confirmed that the same “Problem displaying block” error occurs if I add a video in the app, open the draft on the web and save it there, and then reopen the video in the app. There seems to be an issue between how Gutenberg web saves the video block markup and how Gutenberg mobile expects it to be.
Tested on iPhone XS, iOS 12.3.1, WPiOS 12.7.0.20190617
The text was updated successfully, but these errors were encountered: