# Fehlermeldung mit SW 5.6 und PHP 7.3

**URL:** <https://forum.shopware.com/t/fehlermeldung-mit-sw-5-6-und-php-7-3/62187>\
**Category:** Administration\
**Created:** [7. Oktober 2019 um 10:34 UTC](https://forum.shopware.com/t/fehlermeldung-mit-sw-5-6-und-php-7-3/62187 "2019-10-07T10:34:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnnaDi](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@AnnaDi](https://forum.shopware.com/u/AnnaDi)\
**Post date:** [7. Oktober 2019 um 10:34 UTC](https://forum.shopware.com/t/fehlermeldung-mit-sw-5-6-und-php-7-3/62187/1 "2019-10-07T10:34:52Z")

</div>

Hallo zusammen,

seit dem Shopware Update auf **5.6.2** und **PHP 7.3** werden die Cronjobs und CLI Befehle nicht ausgeführt.

Mit der vorherigen&nbsp;PHP 7.0 Version und SW 5.4.6 gab es keine Probleme.

Folgende Fehlermeldung erhalten wir:

* * *

**_PHP Fatal error:&nbsp; Uncaught TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::registerLoader() must be an instance of Doctrine\Common\Annotations\void, none returned in /home/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php:117_**

**_Stack trace:_**

**_#0 /home/autoload.php(33): Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(Array)_**

**_#1 /home/bin/console(28): require(’/home/…’)_**

**_#2 {main}_**

**_&nbsp; thrown in /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 117 Cache warmup PHP Fatal error:&nbsp; Uncaught TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::registerLoader() must be an instance of Doctrine\Common\Annotations\void, none returned in /home/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php:117_**

**_Stack trace:_**

**_#0 /home//autoload.php(33): Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(Array)_**

**_#1 /home/bin/console(28): require(’/home/…’)_**

**_#2 {main}_**

**_&nbsp; thrown in /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 117_**

* * *

Laut Forum müssen ggf.&nbsp;Einstellungen für den Composer vorgenommen werden. Nur weiß ich nicht wo dies gemacht werden muss.

Hoster ist Profihost.

Installation vom PHP&nbsp;Composer laut Anleitung ([https://wissen.profihost.com/wissen/artikel/php-composer-installation/](https://wissen.profihost.com/wissen/artikel/php-composer-installation/)) für PHP 7.3 wurde gemacht, trotzdem tritt der Fehler auf.

---

<div class="post-metadata">

**Author:** ![drakon](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/drakon/32/7724_2.png) [@drakon](https://forum.shopware.com/u/drakon)\
**Post date:** [7. Oktober 2019 um 13:31 UTC](https://forum.shopware.com/t/fehlermeldung-mit-sw-5-6-und-php-7-3/62187/2 "2019-10-07T13:31:41Z")

</div>

Die Einstellungen für php Weboberfläche und CLI sind nicht dieselben. FÜr CLI muss man explizit php 7.2 oder 7.3 aufrufen oder die Voreinstellung auf einen der beiden Werte setzen. Hier wird wohl eine alte inkompatible Version für CLI aufgerufen.

---

<div class="post-metadata">

**Author:** ![AnnaDi](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@AnnaDi](https://forum.shopware.com/u/AnnaDi)\
**Post date:** [9. Oktober 2019 um 08:21 UTC](https://forum.shopware.com/t/fehlermeldung-mit-sw-5-6-und-php-7-3/62187/3 "2019-10-09T08:21:09Z")

</div>

Vielen Dank! Wir konnten das Problem lösen.

statt nur „php“ müsste&nbsp;der&nbsp;Direktpfad durch,&nbsp;z.b.:&nbsp;„/usr/local/php7.3/bin/php“ ersetzt werden.

---

<div class="post-metadata">

**Author:** ![doitauto](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@doitauto](https://forum.shopware.com/u/doitauto)\
**Post date:** [3. November 2019 um 11:34 UTC](https://forum.shopware.com/t/fehlermeldung-mit-sw-5-6-und-php-7-3/62187/4 "2019-11-03T11:34:42Z")

</div>

> oder die Voreinstellung auf einen der beiden Werte setzen.&nbsp;

Wie tut man die Voreinstellung setzen?&nbsp;
