# Fehler bei Upgrade auf PHP 7.2

**URL:** <https://forum.shopware.com/t/fehler-bei-upgrade-auf-php-7-2/64698>\
**Category:** Installation/Einstieg\
**Created:** [13. Februar 2020 um 22:48 UTC](https://forum.shopware.com/t/fehler-bei-upgrade-auf-php-7-2/64698 "2020-02-13T22:48:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meuche](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@Meuche](https://forum.shopware.com/u/Meuche)\
**Post date:** [13. Februar 2020 um 22:48 UTC](https://forum.shopware.com/t/fehler-bei-upgrade-auf-php-7-2/64698/1 "2020-02-13T22:48:33Z")

</div>

Hallo zusammen,

bei mir läuft derzeit Shopware 5.3.4 mit PHP 5.5.6. Ich muss **zwingend** auf \>= PHP 7.2 upgraden.

Sobald ich bei meinem Hoster auf \>= PHP 7.2 umstelle, erhalte ich im Shopware Front- und Backend folgenden Fehler angezeigt:  
&nbsp;

```
Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Warning: count(): Parameter must be an array or an object that implements Countable in /.../htdocs/engine/Library/Enlight/Event/EventManager.php on line 107

Fatal error: Uncaught Zend_Session_Exception: You must call Zend_Session::setId() before any output has been sent to the browser; output started in /.../htdocs/engine/Library/Enlight/Event/EventManager.php/107 in /.../htdocs/engine/Library/Zend/Session.php:701 Stack trace: #0 /.../htdocs/engine/Library/Zend/Session.php(445): Zend_Session::setId('da374ddbbd813a1...') #1 /.../htdocs/engine/Shopware/Components/DependencyInjection/Bridge/Session.php(105): Zend_Session::start(Array) #2 /.../htdocs/var/cache/production_201710241020/proxies/ShopwareProduction183cd2c84ccbee085532a66c3edcafd5dfec425aProjectContainer.php(1158): Shopware\Components\DependencyInjection\Bridge\Session->createSession(Object(ShopwareProduction183cd2c84ccbee085532a66c3edcafd5dfec425aProjectContainer), Object(Shopware\Components\Session\PdoSessionHandler)) #3 /.../htdocs/vendor/symfony/dependency-injec in /.../htdocs/engine/Library/Zend/Session.php on line 701

```

Kennt jemand den Fehler oder kann mir jemand dabei helfen?

Vielen lieben Dank!

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [14. Februar 2020 um 06:42 UTC](https://forum.shopware.com/t/fehler-bei-upgrade-auf-php-7-2/64698/2 "2020-02-14T06:42:27Z")

</div>

Also Shopware 5.3 ist nicht kompatibel mit PHP 7.2.

Du musst mindestens Shopware 5.5 dazu einsetzen.
