# SW 6.5 abgestürzt

**URL:** <https://forum.shopware.com/t/sw-6-5-abgestuerzt/99799>\
**Category:** Shopware 6 (German)\
**Created:** [24. Mai 2023 um 08:53 UTC](https://forum.shopware.com/t/sw-6-5-abgestuerzt/99799 "2023-05-24T08:53:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [24. Mai 2023 um 08:53 UTC](https://forum.shopware.com/t/sw-6-5-abgestuerzt/99799/1 "2023-05-24T08:53:28Z")

</div>

Beim Versuch, sich im Backend (SW 6.5) mit dem Shopware Store zu verbinden:

```auto
[Semantical Error] The annotation "@Shopware\Core\Framework\Routing\Annotation\RouteScope" in class SwagExtensionStore\Controller\DataController was never imported. Did you maybe forget to add a "use" statement for this annotation? in /.../custom/plugins/SwagExtensionStore/src/Controller/DataController.php (which is being imported from "/.../custom/plugins/SwagExtensionStore/src/Resources/config/routes.yaml"). Make sure there is a loader supporting the "annotation" type.

```

Shop ist nun gar nicht mehr erreichbar. Wie kann ich das Problem lösen?

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [16. Juni 2023 um 12:03 UTC](https://forum.shopware.com/t/sw-6-5-abgestuerzt/99799/2 "2023-06-16T12:03:35Z")

</div>

Seit Update auf 6.5 in einem Plugin (eigenes):

```auto
[Semantical Error]
The annotation "@Shopware\Core\Framework\Routing\Annotation\RouteScope" in class ...\TocartController was never imported. 
Did you maybe forget to add a "use" statement for this annotation? in .../TocartController.php (which is being imported from ".../routes.xml"). 
Make sure there is a loader supporting the "annotation" type.

```

Was kann ich tun, was muss geändert werden?

---

<div class="post-metadata">

**Author:** ![severu](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@severu](https://forum.shopware.com/u/severu)\
**Post date:** [11. August 2023 um 06:32 UTC](https://forum.shopware.com/t/sw-6-5-abgestuerzt/99799/3 "2023-08-11T06:32:14Z")

</div>

probiere doch mal Folgendes:

achte darauf, dass du

use \Symfony\Component\Routing\Annotation\Route;

verwendest und ändere auch

@RouteScope(scopes={„api“})

zu

@Route(defaults={„\_routeScope“={„storefront“}})

in deinem \*Controller.php über der Klassendefinition
