Hi @charlie!
CS11 is amazing! Will do more in-depth testing, but here’s one bug that affected two independent installs. I asked Claude to write the following:
When I open a second document in Cornerstone 11’s tab bar, that tab shows “Uh oh!” and the builder stops responding. The only way out is to leave the builder completely and load it again. It happens on two of our sites, including an almost empty test install, so I don’t think it’s caused by our setup.
Steps to reproduce
-
Open a page in Cornerstone, e.g.
/cornerstone/edit/36. It loads and works. -
Select a second page in the Documents panel, so it opens as a second tab in the builder’s tab bar.
-
The second tab shows “Uh oh!” and the builder freezes.
It isn’t consistent. On our main site I opened the Contact page first and Marketing Strategy second: the second one froze. After reloading, I swapped the order and the second one froze again, so it’s about the second tab, not a particular page. Another time the first page froze straight away and worked after a reload. And once both pages opened fine, but the builder froze when I switched between the two tabs.
Console
From one occurrence on the main site; the getComputedStyle error repeats several times:
/wp-content/themes/p…0.0.js?ver=11.0.0:1 Uncaught TypeError: Failed to execute 'createTreeWalker' on 'Document': parameter 1 is not of type 'Node'.
TypeError: Cannot read properties of null (reading 'getComputedStyle')
at IGe (app.react18.11.0.0.js?ver=11.0.0:44:4393)
at a (app.react18.11.0.0.js?ver=11.0.0:44:5354)
at app.react18.11.0.0.js?ver=11.0.0:44:5577
at Id (react-dom.min.js:165:137)
TypeError: Cannot set properties of null (setting 'tcoIndex')
at app.react18.11.0.0.js?ver=11.0.0:11:98711
at Array.map (<anonymous>)
at app.react18.11.0.0.js?ver=11.0.0:11:98660
What it looks like to us
The tcoIndex error comes from code that calls matchMedia() on the preview window and sets tcoIndex on the result. Chrome returns null from matchMedia() when the window belongs to an iframe that’s no longer attached, and the getComputedStyle error fits the same cause. So the builder seems to keep using the preview frame of a tab after that frame has been removed or replaced. The 11.0.0 changelog mentions a rewritten preview renderer, which may be where to look. That’s our reading of the minified code, so please treat it as a guess.
Happy to test a fix on the blank install, which exists for exactly this.
