Model import gives Error: Class "Symfony\Component\Filesystem\Filesystem" not found
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3305587. --> Reported by: [marco.b](https://www.drupal.org/user/2371506) Related to !217 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>After importing some BOMN.IO models via /admin/config/workflow/eca/import, the follwing error occurs:</p> <p>The website encountered an unexpected error. Please try again later.<br> Error: Class "Symfony\Component\Filesystem\Filesystem" not found in Drupal\eca_ui\Form\Import-&gt;submitForm() (line 365 of modules/contrib/eca/modules/ui/src/Form/Import.php).</p> <pre>Drupal\eca_ui\Form\Import-&gt;submitForm(Array, Object)<br>call_user_func_array(Array, Array) (Line: 114)<br>Drupal\Core\Form\FormSubmitter-&gt;executeSubmitHandlers(Array, Object) (Line: 52)<br>Drupal\Core\Form\FormSubmitter-&gt;doSubmitForm(Array, Object) (Line: 592)<br>Drupal\Core\Form\FormBuilder-&gt;processForm('eca_import', Array, Object) (Line: 320)<br>Drupal\Core\Form\FormBuilder-&gt;buildForm(Object, Object) (Line: 73)<br>Drupal\Core\Controller\FormController-&gt;getContentResult(Object, Object)<br>call_user_func_array(Array, Array) (Line: 123)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 564)<br>Drupal\Core\Render\Renderer-&gt;executeInRenderContext(Object, Object) (Line: 124)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 158)<br>Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 80)<br>Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 58)<br>Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 106)<br>Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 85)<br>Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)<br>Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 709)<br>Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)</pre><p>However, imported model was imported and works.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Go to <a href="https://ecaguide.org/library/test%20models/views/">https://ecaguide.org/library/test%20models/views/</a> and download the example model or create a dummy model and export this one and delete it (to be able to reimport).</li> <li>Import the downloaded file via /admin/config/workflow/eca/import</li> <li>Error occurs</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue