Canvas' fix for the core bug in TextItemBase::applyDefaultValue() itself caused a bug
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3576410. --> Reported by: [bsnodgrass](https://www.drupal.org/user/54611) Related to !677 >>> <h3 id="overview">Overview</h3> <p>The site has Drupal 11.3.3, Canvas 1.2.0, and content types use layout builder enabled to manage display. The error occurs when selecting the manage layout button.</p> <p>The website encountered an unexpected error. Try again later.</p> <p>DBlog reports:<br> location: /admin/structure/types/manage/page/display/default/layout<br> referrer: /admin/structure/types/manage/page/display</p> <p>TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 19 of /code/web/modules/contrib/canvas/src/Plugin/Field/FieldTypeOverride/CoreBugFixTextItemBaseGenerateSampleValueTrait.php).</p> <h3 id="proposed-resolution">Proposed resolution</h3> <h3 id="ui-changes">User interface changes</h3>
issue