- Issue created by @idiaz.roncero
- Status changed to Closed: cannot reproduce
over 1 year ago 9:43am 24 August 2023 - πͺπΈSpain idiaz.roncero Madrid
It seems I had something wrong on my side, even if I had a clean D10 install. maybe something with my local development environment? Nevertheless, it's working OK now.
Closing as can't reproduce.
- Status changed to Active
over 1 year ago 11:19am 13 September 2023 - πͺπΈSpain idiaz.roncero Madrid
Re-opening this issue as it has happened again, on a completely different environment and under a completely different set of circumstances.
First time it happened to me, I was using a clean D10 install, no modules installed (other than the standard profile ones) on a DDEV local env.
This time it was an old project (7 years old), on D10, with a lot of active modules and a lot of customizations on a Docker4Drupal local env.
I uninstalled the module
layout_builder_iframe_modal
, which alters the contextual links on Layout Builder blocks.Then, I found the same error as reported above: the contextual links remained cached, with the
layout_builder_iframe_modal
alterations, leading to errors as it changes thedata-dialog-type
attribute.Only manually cleaning the cache by using
window.sessionStorage.clear()
on the console solved the issue. No amount of Drupal cache clears resolved the issue.I still don't know under which circumstances the error appears, but the fact that I have reproduce it on two completely different environments leads me to consider that this might affect more people.
- π§πͺBelgium weseze
Also experienced this issue today.
Frontend had added classes/wrappers to the links.html.twig and written CSS for it, nothing was visible...
We then tried removing the twig and noticed it was still in use...Running "window.sessionStorage.clear()" fixed it.
- πΊπΈUnited States brightbold Boston, MA
Thank you for the
window.sessionStorage.clear()
tip! I spent two days trying to figure out why contextual linkli
s weren't populating; of course the logical source was my subtheme, but there was no pattern to when and where it appeared. As I was able to reproduce it in the base theme, Olivero, and Claro, I became increasingly confused about the source of the problem. Learning that normal cache clearing wouldn't work and that I neededwindow.sessionStorage.clear()
instead allowed me to successfully track down the culprit. So grateful for this thorough bug report!