Skip to content

Visualizer on WordPress 7.2-RC2: the chart block is empty in the post editor and its chart picker crashes #1413

Open

Description

@milicavs

🧪 Visualizer on WordPress 7.2-RC2: the chart block is empty in the post editor and its chart picker crashes

In the post and page editor, the Visualizer chart block draws nothing, and opening its "Display an existing chart" picker turns the block into "This block has encountered an error and cannot be previewed". This started with WordPress 7.1, which always puts the post editor in an iframe, and it is unchanged on 7.2-RC2. The front end, the widgets editor and the classic editor still show charts.

On WordPress 7.0 (before the iframe change): the three chart blocks on the test page draw in the editor, the picker shows drawn previews, and a picked chart is kept after saving and shows on the front end.
On WordPress 7.1.5 (current release) and 7.2-RC2: none of the three blocks draws; the DataTable block shows "This block has encountered an error"; the picker crashes the block as it opens; the console logs Uncaught (in promise) Error: The container #reactgooglegraph-<n> is not defined. for each preview.

Link WordPress Bot check
WordPress 7.0 7.0.9 (Playground's 7.0) ✅ Works: on 2026-11-04, 7.0.8 drew 3 of 3 blocks in Playground and in wp-env; not rechecked today
Current release 7.1.5 ❌ Fails (wp-env today): 0 of 3 blocks drawn, picker crash
New build 7.2-RC2 (Playground's beta channel, checked today) ❌ Fails (wp-env today): 0 of 3 blocks drawn, picker crash

Setup: each link installs Visualizer 4.0.11 from wordpress.org with Twenty Twenty-One and seeds 16 charts (ids 8201-8216) and page 9002 "QA Visualizer blocks" with three chart blocks, then opens that page in the editor. Tools → QA Logs shows debug.log.
Try: look at the three chart blocks in the editor, then add a new Visualizer block, choose "Display an existing chart", and compare 7.0 with 7.1.5 or 7.2-RC2.
Without Visualizer: not applicable, it is Visualizer's own block. The block is registered with API version 1 and no block.json; since 7.1 the post editor is iframed even for such blocks, and the block's Google Charts previews look for their container in the outer page, not in the editor iframe. So this is Visualizer's to fix.
Local reproduction: wp-env on 7.1.5 with qa-wp-compat/references/fixtures/visualizer-blueprint.json (Codeinwp/qa-compatibility), open /wp-admin/post.php?post=9002&action=edit; then wp core update --version=7.2-RC2 --force and wp core update-db, and open it again.
Tracking: Codeinwp/qa-compatibility#133

Activity

  1. added theissue type on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions