Composer Uncaught TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::regist

 Ich bekomm bei Aufruf von  ./app/install.sh folgenden Fehler und weiß nicht Recht warum. PHP Version ist 7.1.25

PHP Fatal error: Uncaught TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::registerLoader() must be an instance of Doctrine\Common\Annotations\void, none returned in /var/www/clients/client0/web5/web/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php:117
Stack trace:
#0 /var/www/clients/client0/web5/web/app/autoload.php(12): Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(Array)
#1 /var/www/clients/client0/web5/web/bin/console(6): require_once('/var/www/client...')
#2 {main}
  thrown in /var/www/clients/client0/web5/web/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 117

 

Halo @Shopwareianer‍,

ich habe gerade das selbe Problem, allerdings wenn ich über den Plentyconnector syncen möchte.
Darf ich nach der Lösung fragen?

Grüße

Puh … Weiß ich gar nicht mehr. Kann sein, dass es die PHP Version war? composer install nicht ausgeführt? Ich weiß es nicht mehr …

du brauchst php 7.2

Hallo,

haben ebenfalls den Fehler. Ist nach Update auf Shopware 5.6.1 und PHP 7.2 bzw 7.3 aufgetretten.

Habt ihr eine Lösung gefunden?

Führt ihr composer auch mit der richtigen PHP Version aus?

Hallo Shyim,

kannst du bitte kurz helfen, wo wir die Einstellung für den composer vornehmen müssen. Server wird von Profihost gehostet. Vor PHP 7.3 lief  PHP 7.0

Besten Dank im Voraus!

Jemand eine Idee? Wo die Einstellung für den Composer vorgenommen werden kann bzw. nachgeschaut werden klann?

Wenn die Fehlermeldung kommt hast du nicht mindestens PHP 7.2.

Hallo Shyim,

anbei die Fehlermeldung.

PHP Fatal error:  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}

  thrown in /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 117 Cache warmup PHP Fatal error:  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}

  thrown in /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 117