[11.3] Canvas' default content exporter integration crashes for component instances that aren't using the SDC or JS component sources
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3560543. --> Reported by: [andyg5000](https://www.drupal.org/user/808668) Related to !370 >>> <h3 id="overview">Overview</h3> <p><em>Bug introduced in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3534561" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3534561</a></span>.</em></p> <p>When attempting to export a canvas page that includes a Drupal view block, we get the following error. </p> <pre>TypeError: Drupal\canvas\PropSource\PropSource::parse(): Argument #1 ($prop_source) must be of type array, string given, called in /var/www/html/web/modules/contrib/canvas/src/EventSubscriber/DefaultContentSubscriber.php on line 84 in /var/www/html/web/modules/contrib/canvas/src/PropSource/PropSource.php on line 66 #0 /var/www/html/web/modules/contrib/canvas/src/EventSubscriber/DefaultContentSubscriber.php(84): Drupal\canvas\PropSource\PropSource::parse()<br>#1 /var/www/html/web/core/lib/Drupal/Core/DefaultContent/Exporter.php(225): Drupal\canvas\EventSubscriber\DefaultContentSubscriber-&gt;Drupal\canvas\EventSubscriber\{closure}()<br>#2 /var/www/html/web/core/lib/Drupal/Core/DefaultContent/Exporter.php(98): Drupal\Core\DefaultContent\Exporter-&gt;exportTranslation()<br>#3 /var/www/html/web/core/lib/Drupal/Core/DefaultContent/Exporter.php(140): Drupal\Core\DefaultContent\Exporter-&gt;export()<br>#4 /var/www/html/web/core/lib/Drupal/Core/DefaultContent/ContentExportCommand.php(105): Drupal\Core\DefaultContent\Exporter-&gt;exportToFile()<br>#5 /var/www/html/vendor/symfony/console/Command/Command.php(335): Drupal\Core\DefaultContent\ContentExportCommand-&gt;execute()<br>#6 /var/www/html/vendor/symfony/console/Application.php(1080): Symfony\Component\Console\Command\Command-&gt;run()<br>#7 /var/www/html/vendor/symfony/console/Application.php(356): Symfony\Component\Console\Application-&gt;doRunCommand()<br>#8 /var/www/html/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application-&gt;doRun()<br>#9 /var/www/html/web/core/scripts/drupal(34): Symfony\Component\Console\Application-&gt;run()</pre><h3 id="overview">To reproduce</h3> <p>1) Create a drupal view with block(s)<br> 2) Create a canvas page that includes the block<br> 3) Run `drupal content:export canvas_page`</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Continue whenever the returned array value is empty. </p> <h3 id="ui-changes">User interface changes</h3> <p>None</p> > Related issue: [Issue #3534561](https://www.drupal.org/node/3534561) > Related issue: [Issue #3566720](https://www.drupal.org/node/3566720)
issue