Gutenberg: Existing featured images don't open after installing Gutenberg

Created on 18 Sep 2018  路  7Comments  路  Source: WordPress/gutenberg

Describe the bug
We have a site with lots of posts, each with a featured image. The image is visible from the visual editor, which shows it is still linked to the post in the database. However when attempting to open and update the image, the media editor spins and can't seem to find it. We need to re-link it by searching for it by keyword in the media editor, then save. Something is un-linking featured images, in Gutenberg. The featured image not opening in gutenberg prevents us from updating it and as of the latest version it is still not working.

To Reproduce
Steps to reproduce the behavior:

  1. Go to an existing post created with the classic editor which already has a featured image
  2. Click on Featured Image
  3. The media editor spins and can't seem to find it

Expected behavior
Retain existing data

Screenshots
90 sec video of the issue:
https://www.youtube.com/watch?v=7lI_HxaJvJQ&feature=youtu.be

Desktop (please complete the following information):

  • OS: Windows 10-64
  • Browser Chrome
  • Version 69
    (confirmed with Edge browser also in video recording above)
Needs Testing [Feature] Document Settings [Type] Bug

All 7 comments

Yes, we have the same error.
In Gutenberg after clicking on the featured image the media modal opens but the featured image is not shown and selected as was the behavior with the standard editor.

@designsimply I think this issue should be added to an important milestone so it gets worked on 馃檪

@designsimply can we provide more data for debugging the featured image not loading? I see some users recording their javascript console, please let us know if it would help and if so, how to do this. Thanks!

I'm experiencing this issue too. Notably, there's a successful REST API request for the attachment:

image

It seems like something might be broken with getMedia().

I'm experiencing this issue too.

I was experiencing a different issue, actually: #10214

@danielbachhuber we're seeing a possibly related issue. If an existing post has multiple images inside a classic block, updating the alt text and title attributes of more than one image fails to save the updates. Only the first image title update seems to be saved and the subsequent ones are discarded, as if the classic block could only handle one image title change per save and we lose everything else. Do you think it is related to other issues you've seen or should I create another issue entry?

Do you think it is related to other issues you've seen or should I create another issue entry?

I'm not sure, to be honest. If you'd like to test against latest master, I've just published a blog post with build details. If the issue reproduces against the master branch, then I'd suggest creating a new issue.

Was this page helpful?
0 / 5 - 0 ratings