You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Visualizer on WordPress 7.2-RC2: the chart block is empty in the post editor and its chart picker crashes #1413
🧪 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.
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