# Cache Probleme - Fehler-Log

**URL:** https://forum.shopware.com/t/cache-probleme-fehler-log/62753
**Category:** Programmierung
**Created:** [2. November 2019 um 15:00 UTC](https://forum.shopware.com/t/cache-probleme-fehler-log/62753 "2019-11-02T15:00:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dingo89](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Dingo89](https://forum.shopware.com/u/Dingo89)
#### Post date: [2. November 2019 um 15:00 UTC](https://forum.shopware.com/t/cache-probleme-fehler-log/62753/1 "2019-11-02T15:00:56Z")

</div>

Hallo,

kann jemand helfen? Wir haben wiederkehrend folgenden Fehler-Log in unserem Shop.

gibt es einen Zusammenhang mit dem Cache? Die Seiten laden regelmäßig nur sehr langsam und das Backend läuft ebenfalls nur schleppend.

&nbsp;

Doctrine\ORM\ORMInvalidArgumentException: EntityManager#detach() expects parameter 1 to be an entity object, NULL given. in /vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:189 Stack trace:  
#0 /vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(656): Doctrine\ORM\ORMInvalidArgumentException::invalidObject(‘EntityManager#d…’, NULL)  
#1 /engine/Shopware/Controllers/Frontend/Forms.php(161): Doctrine\ORM\EntityManager-\>detach(NULL)  
#2 /engine/Shopware/Controllers/Frontend/Forms.php(73): Shopware\_Controllers\_Frontend\_Forms-\>getContent(NULL)  
#3 /engine/Library/Enlight/Controller/Action.php(192): Shopware\_Controllers\_Frontend\_Forms-\>indexAction()  
#4 /engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight\_Controller\_Action-\>dispatch(‘indexAction’)  
#5 /engine/Library/Enlight/Controller/Front.php(228): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp))  
#6 /engine/Shopware/Kernel.php(185): Enlight\_Controller\_Front-\>dispatch()  
#7 /vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#8 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#9 /engine/Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)  
#10 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(420): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true)  
#11 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>fetch(Object(Symfony\Component\HttpFoundation\Request), true)  
#12 /engine/Shopware/Components/HttpCache/AppCache.php(183): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true)  
#13 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache-\>lookup(Object(Symfony\Component\HttpFoundation\Request), true)  
#14 /engine/Shopware/Components/HttpCache/AppCache.php(110): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#15 /html/shopware/shopware.php(122): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request))  
#16

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![rissland2](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rissland2](https://forum.shopware.com/u/rissland2)
#### Post date: [22. November 2019 um 17:06 UTC](https://forum.shopware.com/t/cache-probleme-fehler-log/62753/2 "2019-11-22T17:06:30Z")

</div>

Schließe ich mich direkt mal an. Gleiches Problem hier auch:

```
Doctrine\ORM\ORMInvalidArgumentException: EntityManager#detach() expects parameter 1 to be an entity object, NULL given. in /vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:189 Stack trace:
#0 /vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(656): Doctrine\ORM\ORMInvalidArgumentException::invalidObject('EntityManager#d...', NULL)
#1 /engine/Shopware/Controllers/Frontend/Forms.php(161): Doctrine\ORM\EntityManager->detach(NULL)
#2 /engine/Shopware/Controllers/Frontend/Forms.php(73): Shopware_Controllers_Frontend_Forms->getContent('5')
#3 /engine/Library/Enlight/Controller/Action.php(192): Shopware_Controllers_Frontend_Forms->indexAction()
#4 /engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight_Controller_Action->dispatch('indexAction')
#5 /engine/Library/Enlight/Controller/Front.php(228): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#6 /engine/Shopware/Kernel.php(185): Enlight_Controller_Front->dispatch()
#7 /vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true)
#9 /engine/Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#10 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(420): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#11 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)
#12 /engine/Shopware/Components/HttpCache/AppCache.php(183): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#13 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#14 /engine/Shopware/Components/HttpCache/AppCache.php(110): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /var/www/vhosts/jr-werbemittel.de/httpdocs/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#16

```

Bist du mit deinem Problem weiter gekommen.

Das sollte am Cache liegen. Habe aber selbst noch nicht rausgefunden woran es genau liegt

---

<div class="post-metadata">

### Author: ![Dingo89](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Dingo89](https://forum.shopware.com/u/Dingo89)
#### Post date: [15. Dezember 2019 um 15:36 UTC](https://forum.shopware.com/t/cache-probleme-fehler-log/62753/3 "2019-12-15T15:36:27Z")

</div>

Moin,

leider sind wir&nbsp;auf keinem Weg weiter gekommen.

Wir haben sämtliche Einstellungen / Plugins im Staging getestet. Leider ohne Erfolg.

---

<div class="post-metadata">

### Author: ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)
#### Post date: [15. Dezember 2019 um 15:55 UTC](https://forum.shopware.com/t/cache-probleme-fehler-log/62753/4 "2019-12-15T15:55:20Z")

</div>

Der Fehler aus der Log ist behoben mit 5.6.3
