Skip to content

Classic block crashes when loaded into Site Editor as part of a Reusable block or post content #48938

@bobbingwide

Description

@bobbingwide

Description

While testing WordPress 6.2-beta5, I inserted a Reusable block into my home page in order to see the color purple.
When I opened the Site Editor the Reusable block was loaded into the post content block, but the Classic block within it encountered an error.

Uncaught TypeError: Cannot read properties of undefined (reading 'tinymce')

I've since discovered that the problem also occurs for Classic blocks being displayed in Post Content.

See also #23086

Step-by-step reproduction instructions

For a site which displays a static page as the home page

  1. Edit your home page
  2. insert a Classic block
  3. Save
  4. Choose Edit site
  5. Scroll down to see that the Classic block has encountered an error.

Screenshots, screen recording, code snippet

This screenshot is for the Classic block within the Reusable block

image

This screenshot is for the Classic block directly in post content

image

Environment info

  • WordPress 6.2-beta5
  • Gutenberg 15.2.4

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] BlockThe "Reusable Block" Block[Block] ClassicAffects the Classic Editor Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions