- Status changed to Needs review
almost 2 years ago 8:14pm 20 March 2023 - π¦π·Argentina dagmar Argentina
I faced this issue today. I seems to be a problem when installing and removing submodules which provide libraries. This issue is not automatically fixed by clearing the cache. I'm also not using Layout builder, so the workaround described in #2 π Can't add node that has chart field on it, get WSOD Closed: outdated does not work for me.
In my case I installed the charts module. Then I created a chart, then I installed
charts_google
, and when I visited the old chart I got the described fatal error. - πΊπΈUnited States andileco
I just committed a patch to this issue: https://www.drupal.org/project/charts/issues/3263413 π Warning: Undefined array key "library" in Drupal\charts\Element\BaseSettings::processSettings()...line 125...\BaseSettings.php Fixed . It seems related. However, I haven't tried to replicate your issue yet. Does the patch for the related issue fix this one?
If not, could you modify your patch to throw an exception that says that a library is missing rather than returning null?
- Status changed to Closed: outdated
over 1 year ago 8:27pm 27 June 2023 - πΊπΈUnited States andileco
So I realized that Drupal provides the information about a plugin being missing. I think the fix in the related issue (calculateDependencies using wrong parameter in Views style plugin) should address this issue too. You will still get a WSOD if you try to disable a module that one of your views depends on, but the error log will tell you.