# PHP Error 500 nach Update (Cleanup)

**URL:** <https://forum.shopware.com/t/php-error-500-nach-update-cleanup/44489>\
**Category:** Administration\
**Created:** [14. März 2017 um 20:54 UTC](https://forum.shopware.com/t/php-error-500-nach-update-cleanup/44489 "2017-03-14T20:54:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![froschgift](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@froschgift](https://forum.shopware.com/u/froschgift)\
**Post date:** [14. März 2017 um 20:54 UTC](https://forum.shopware.com/t/php-error-500-nach-update-cleanup/44489/1 "2017-03-14T20:54:52Z")

</div>

Hallo,

wir haben ein seltsames Problem beim Update eines unserer Shopware Systeme.

**Facts:**

- PHP 7.0.16

- Update erfolgte von 5.2.18 auf 5.2.20

- Auch nach einspielen des Backups und erneutem Anlauf kommt der gleiche Fehler

- Andere SW Installationen auf dem gleichen System liefen reibungslos durch

- Fehler tritt im Browserupdate und auch über die Shell auf

Der Cleanup Job scheint noch problemlos zu funktionieren. Leider wird auch der Wartungsmodus nicht abgeschaltet, ich komme somit auch nicht ins Backend. Kann man diesen irgendwie über die Shell oder direkt in der DB abschalten?&nbsp;

Jemand eine Idee?

**UPDATE:&nbsp;** Es liegt definitiv am CleanUp

```
bash-4.2$ /opt/plesk/php/7.0/bin/php ../../bin/console sw:media:cleanup
PHP Fatal error: Uncaught Error: Call to a member function getMain() on null in /var/www/vhosts/xyz.de/sw.xyz.de/engine/Shopware/Bundle/MediaBundle/MediaService.php:228
Stack trace:
#0 /var/www/vhosts/xyz.de/sw.xyz.de/engine/Shopware/Bundle/MediaBundle/MediaService.php(81): Shopware\Bundle\MediaBundle\MediaService->createFallbackMediaUrl()
#1 /var/www/vhosts/xyz.de/sw.xyz.de/engine/Shopware/Bundle/MediaBundle/MediaServiceFactory.php(89): Shopware\Bundle\MediaBundle\MediaService->__construct(Object(League\Flysystem\Filesystem), Object(Shopware\Bundle\MediaBundle\Strategy\Md5Strategy), Object(ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer), Array)
#2 /var/www/vhosts/xyz.de/sw.xyz.de/var/cache/production_201702271540/proxies/ShopwareProductionda39a3ee5e6b4b0d3255bfef95601890afd80709ProjectContainer.php(1226): Shopware\Bundle\MediaBundle\MediaServiceFactory->factory('local')
#3 /var/www/vhosts/xyz.de/sw.xyz.de/vendor/symfon in /var/www/vhosts/xyz.de/sw.xyz.de/engine/Shopware/Bundle/MediaBundle/MediaService.php on line 228
bash-4.2$ 

```

Kann hier jemand helfen?

---

<div class="post-metadata">

**Author:** ![froschgift](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@froschgift](https://forum.shopware.com/u/froschgift)\
**Post date:** [19. März 2017 um 13:04 UTC](https://forum.shopware.com/t/php-error-500-nach-update-cleanup/44489/2 "2017-03-19T13:04:13Z")

</div>

Kann hier wirklich niemand helfen?

---

<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:** [29. März 2017 um 08:07 UTC](https://forum.shopware.com/t/php-error-500-nach-update-cleanup/44489/3 "2017-03-29T08:07:02Z")

</div>

Dein Hauptshop ist vermutlich in der „s\_core\_shops“ Tabelle deaktiviert weshalb es zu dem Fehler kommt. Bitte prüfe die Tabelle und setzte den Wert auf „1“ bei active, im Anschluss sollte das Cleanup funktionieren.

LG Andre&nbsp; ![Shopware](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/shopware.png "Shopware")

---

<div class="post-metadata">

**Author:** ![froschgift](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@froschgift](https://forum.shopware.com/u/froschgift)\
**Post date:** [30. März 2017 um 19:45 UTC](https://forum.shopware.com/t/php-error-500-nach-update-cleanup/44489/4 "2017-03-30T19:45:15Z")

</div>

Das war es! Vielen Dank!

> [@AndreHerking schrieb:](https://forum.shopware.com/profile/23413/AndreHerking "AndreHerking")
> 
> Dein Hauptshop ist vermutlich in der „s\_core\_shops“ Tabelle deaktiviert weshalb es zu dem Fehler kommt. Bitte prüfe die Tabelle und setzte den Wert auf „1“ bei active, im Anschluss sollte das Cleanup funktionieren.
> 
> LG Andre&nbsp; ![Shopware](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "Shopware")

&nbsp;
