Title: Twitter embeds breaking block editor
Last modified: June 12, 2019

---

# Twitter embeds breaking block editor

 *  Resolved [robib](https://wordpress.org/support/users/robib/)
 * (@robib)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/twitter-embeds-breaking-block-editor/)
 * When trying to edit an existing post containing a twitter embed (embedded either
   via the twitter block or by pasting a tweet URL directly into the editor) you
   just get a blank white page with the following errors in the console:
 * TypeError: wp.apiFetch is undefined
    Unhandled promise rejection Object { code:“
   invalid_json”, message: “The response is not a valid JSON response.” }
 * If you then remove the twitter embed block (via the classic editor) and save 
   the block editor then works as normal
 * Re-add a twitter embed and it breaks again
 * This on WP version 5.2.1 with all other plugins disabled

Viewing 1 replies (of 1 total)

 *  Thread Starter [robib](https://wordpress.org/support/users/robib/)
 * (@robib)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/twitter-embeds-breaking-block-editor/#post-11630642)
 * Ignore the above – was a conflict with the theme. All sorted now

Viewing 1 replies (of 1 total)

The topic ‘Twitter embeds breaking block editor’ is closed to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

## Tags

 * [twitter](https://wordpress.org/support/topic-tag/twitter/)

 * 1 reply
 * 1 participant
 * Last reply from: [robib](https://wordpress.org/support/users/robib/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/twitter-embeds-breaking-block-editor/#post-11630642)
 * Status: resolved