PHP error when using Drupal canvas
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3589555. -->
Reported by: [andybroomfield](https://www.drupal.org/user/636756)
Related to !6
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>There is an incompatibility with Drupal canvas and localgov_guides.<br>
This PHP error gets produced when going to the add a component</p>
<blockquote><p>Error: Call to a member function bundle() on null in Drupal\localgov_guides\Plugin\Block\GuidesAbstractBaseBlock->setPages() (line 103 of /web/modules/contrib/localgov_guides/src/Plugin/Block/GuidesAbstractBaseBlock.php).</p></blockquote>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Install localgov_guides<br>
Install canvas<br>
Go to a canvas page (or create a new one)<br>
Click the left plus menu to add a component<br>
See the red warning<br>
Check the logs for the full error</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Although it's unusual for now, we should try and make our modules play nicely with Canvas.</p>
issue