Hello,
Since updating to WordPress 7.1.4 (on 6.9 everything was fine), every large page exported from GreenLight to WordPress crashes the block editor. The tab freezes (“Page unresponsive” -> “Wait”), then Chrome/Edge shows “This page is having a problem”. Small pages (~200 blocks) open fine. Pages with 1,500+ blocks crash every time, including after updating GreenLight to the latest version.
Environment: WordPress 7.1.4, PHP 8.4.27, Greenshift 13.2.2 (latest), Greenshift theme 2.6.6, Chrome/Edge on Windows 11. The server has a 512 MB PHP memory limit, so the server is not the bottleneck: the browser tab runs out of memory.
Root cause: the exported greenshift-blocks/element blocks have no “id” / “localId” attributes, for example:
When the editor loads, Greenshift generates and writes id + localId for every block, one updateBlockAttributes call per block. WordPress 7.x loads its real-time collaboration layer in the editor (Yjs is loaded, and the canvas has a “collaborators-overlay” element). It reacts to each of these thousands of updates, and memory use explodes.
Measurements, same 1,520-block page in the block editor:
Content as exported (no IDs): the JS heap grows past 3.4 GB in under a minute and the tab crashes.
Same content with unique “id”:”gsbp-xxxxxxx”,”localId”:”gsbp-xxxxxxx” added to every block: loads in under a second with about 190 MB of heap.
On a 145-block subset, the exported content triggered about 600 store changes right after load. Every block changed exactly two attributes: id and localId.
Requested fix: please have the exporter write a unique “id” and an identical “localId” (format “gsbp-” + 7 hex characters) on every greenshift-blocks/element block. One detail: for blocks with “styleAttributes”, Greenshift’s save output also adds that ID as a class on the element (e.g. <svg … class=”gsbp-xxxxxxx”>). The exporter must add that class too, otherwise those blocks fail validation.
Current workaround: after each export, we add the IDs to the saved post content through the REST API, then open the page in the editor and click Update.
Thank you!
In Progress
WordPress export: Greenshift blocks are missing id/localId, so the block editor crashes on large pages (WordPress 7.x)
Replies
Post a Reply
You must be logged in to post a comment.