# Hilfe! Code 2

**URL:** https://forum.shopware.com/t/hilfe-code-2/58573
**Category:** Installation/Einstieg
**Created:** [14. März 2019 um 12:21 UTC](https://forum.shopware.com/t/hilfe-code-2/58573 "2019-03-14T12:21:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![elena351](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@elena351](https://forum.shopware.com/u/elena351)
#### Post date: [14. März 2019 um 12:21 UTC](https://forum.shopware.com/t/hilfe-code-2/58573/1 "2019-03-14T12:21:30Z")

</div>

_Ich habe schon&nbsp; 2 mal alles heruntergeladen, installiert, den Datenbank erfolgreich übernommen. Bei letzem „Konfigurieren“ immer sehe diesen Bericht, wie kann ich das fixen?_

**Slim Application Error**

The application could not run because of the following error:

Details

**Type:** &nbsp;ErrorException

**Code:** &nbsp;2

**Message:** &nbsp;„continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“?

**File:** &nbsp;C:\xampp\htdocs\Shopware\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php

**Line:** &nbsp;2636

Trace

```
 &nbsp;

```

#0 C:\xampp\htdocs\Shopware\recovery\common\vendor\composer\ClassLoader.php(444): Slim\Slim::handleErrors(2, ‚„continue“ targ…‘, ‚C:\xampp\htdocs…‘, 2636, Array)

#1 C:\xampp\htdocs\Shopware\recovery\common\vendor\composer\ClassLoader.php(444): include()

#2 C:\xampp\htdocs\Shopware\recovery\common\vendor\composer\ClassLoader.php(322): Composer\Autoload\includeFile(‚C:\xampp\htdocs…‘)

#3 [internal function]: Composer\Autoload\ClassLoader-\>loadClass(‚Doctrine\ORM\Un…‘)

#4 C:\xampp\htdocs\Shopware\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(160): spl\_autoload\_call(‚Doctrine\ORM\Un…‘)

#5 C:\xampp\htdocs\Shopware\engine\Shopware\Components\Model\ModelManager.php(86): Doctrine\ORM\EntityManager-\>\_\_construct(Object(Doctrine\DBAL\Connection), Object(Shopware\Components\Model\Configuration), Object(Doctrine\Common\EventManager))

#6 C:\xampp\htdocs\Shopware\engine\Shopware\Components\DependencyInjection\Bridge\Models.php(74): Shopware\Components\Model\ModelManager::createInstance(Object(Doctrine\DBAL\Connection), Object(Shopware\Components\Model\Configuration), Object(Doctrine\Common\EventManager))

#7 C:\xampp\htdocs\Shopware\var\cache\production\_201902250948\proxies\ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer.php(1679): Shopware\Components\DependencyInjection\Bridge\Models-\>factory(Object(Doctrine\Common\EventManager), Object(Shopware\Components\Model\Configuration), Object(Enlight\_Loader), Object(Doctrine\DBAL\Connection), Object(Doctrine\ORM\Mapping\Driver\AnnotationDriver))

#8 C:\xampp\htdocs\Shopware\vendor\symfony\dependency-injection\Container.php(306): ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer-\>getModelsService()

#9 C:\xampp\htdocs\Shopware\engine\Shopware\Components\DependencyInjection\Container.php(211): Symfony\Component\DependencyInjection\Container-\>get(‚models‘, 1)

#10 C:\xampp\htdocs\Shopware\engine\Shopware\Components\DependencyInjection\Container.php(143): Shopware\Components\DependencyInjection\Container-\>doLoad(‚models‘, 1)

#11 C:\xampp\htdocs\Shopware\recovery\install\src\ContainerProvider.php(125): Shopware\Components\DependencyInjection\Container-\>get(‚models‘)

#12 C:\xampp\htdocs\Shopware\recovery\common\vendor\pimple\pimple\src\Pimple\Container.php(118): Shopware\Recovery\Install\ContainerProvider-\>Shopware\Recovery\Install{closure}(Object(Pimple\Container))

#13 C:\xampp\htdocs\Shopware\recovery\install\src\ContainerProvider.php(131): Pimple\Container-\>offsetGet(‚shopware.contai…‘)

#14 C:\xampp\htdocs\Shopware\recovery\common\vendor\pimple\pimple\src\Pimple\Container.php(118): Shopware\Recovery\Install\ContainerProvider-\>Shopware\Recovery\Install{closure}(Object(Pimple\Container))

#15 C:\xampp\htdocs\Shopware\recovery\install\src\ContainerProvider.php(144): Pimple\Container-\>offsetGet(‚shopware.theme\_…‘)

#16 C:\xampp\htdocs\Shopware\recovery\common\vendor\pimple\pimple\src\Pimple\Container.php(118): Shopware\Recovery\Install\ContainerProvider-\>Shopware\Recovery\Install{closure}(Object(Pimple\Container))

#17 C:\xampp\htdocs\Shopware\recovery\install\src\app.php(500): Pimple\Container-\>offsetGet(‚theme.service‘)

#18 [internal function]: {closure}()

#19 C:\xampp\htdocs\Shopware\recovery\common\vendor\slim\slim\Slim\Route.php(468): call\_user\_func\_array(Object(Closure), Array)

#20 C:\xampp\htdocs\Shopware\recovery\common\vendor\slim\slim\Slim\Slim.php(1355): Slim\Route-\>dispatch()

#21 C:\xampp\htdocs\Shopware\recovery\common\vendor\slim\slim\Slim\Middleware\Flash.php(85): Slim\Slim-\>call()

#22 C:\xampp\htdocs\Shopware\recovery\common\vendor\slim\slim\Slim\Middleware\MethodOverride.php(92): Slim\Middleware\Flash-\>call()

#23 C:\xampp\htdocs\Shopware\recovery\common\vendor\slim\slim\Slim\Middleware\PrettyExceptions.php(67): Slim\Middleware\MethodOverride-\>call()

#24 C:\xampp\htdocs\Shopware\recovery\common\vendor\slim\slim\Slim\Slim.php(1300): Slim\Middleware\PrettyExceptions-\>call()

#25 C:\xampp\htdocs\Shopware\recovery\install\index.php(75): Slim\Slim-\>run()

#26 {main}

---

<div class="post-metadata">

### Author: ![henrik23](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@henrik23](https://forum.shopware.com/u/henrik23)
#### Post date: [25. März 2019 um 16:17 UTC](https://forum.shopware.com/t/hilfe-code-2/58573/2 "2019-03-25T16:17:44Z")

</div>

Hallo elena351,

ich hatte heute mit Shopware 5.5.7 auf meinem lokalen Rechner dasselbe Problem:

> _Message:&nbsp;„continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“?_
> 
> _File:&nbsp;C:\xampp\htdocs\Shopware\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php_
> 
> _Line:&nbsp;2636_

Auch eine erneute Installation (per Komplett-Shop-ZIP-Datei bzw. One-File-Installer) brachte keine Besserung, weil alle dasselbe enthalten bzw. laden.

**LÖSUNG: Ich&nbsp;habe also in der Datei "_\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php"_ in der genannten Zeile und in einer weiteren, die dasselbe Problem aufwies, mittels Editor das „continue;“ in ein „continue 2;“ umgewandelt. Und die Seite neugeladen.**

Seither funktioniert meine lokale Installation tadellos.

---

<div class="post-metadata">

### Author: ![selbstwaerts](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@selbstwaerts](https://forum.shopware.com/u/selbstwaerts)
#### Post date: [16. Oktober 2020 um 06:02 UTC](https://forum.shopware.com/t/hilfe-code-2/58573/3 "2020-10-16T06:02:24Z")

</div>

Moin!&nbsp;  
Da ich das selbe im Log stehen habe und hier Abhilfe angeboten wird: Was tut denn diese Lösung?  
Bekommt dann jeder Kunde 2 Gutscheine statt einem oder wird der Steuersatz geändert? 🙂

Etwas Erhellung wäre toll…&nbsp;Danke!

Erik

---

<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. Oktober 2020 um 06:07 UTC](https://forum.shopware.com/t/hilfe-code-2/58573/4 "2020-10-16T06:07:12Z")

</div>

Shopware Installationen auf lokalen Windows PC (C:\xampp) ist nicht gut. Es spiegelt nicht die Anforderungen auf einem richtigen Server wieder. Lieber irgendwo eine Subdomain einrichten und dort Shopware installieren.

---

<div class="post-metadata">

### Author: ![AndreHerking](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andreherking/32/7839_2.png) [@AndreHerking](https://forum.shopware.com/u/AndreHerking)
#### Post date: [16. Oktober 2020 um 07:27 UTC](https://forum.shopware.com/t/hilfe-code-2/58573/5 "2020-10-16T07:27:09Z")

</div>

Das Problem ist die PHP Version, vermutlich wird hier PHP 7.3 o. höher verwendet. Dies geht aber nicht mit SW 5.5.x

&nbsp;
