Shopware 6 Installation scheitert

Die Installation einer neuen Shopware 6 Installation auf unserem Entwicklungsserver (Ubuntu 20.04, PHP 8.1) mit dem „shopware-installer.phar.php“ Script scheitert bereits beim Aufruf mit diesem Fehler:

Fatal error: Uncaught Error: Class „Locale“ not found in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php:37 Stack trace: #0 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(71): Symfony\Component\Translation\LocaleSwitcher->setLocale() #1 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(42): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener->setLocale() #2 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener->onKernelRequest() #3 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher{closure}() #4 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners() #5 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #6 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel->handleRaw() #7 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/Kernel.php(184): Symfony\Component\HttpKernel\HttpKernel->handle() #8 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/index.php(32): Symfony\Component\HttpKernel\Kernel->handle() #9 /var/www/shopware6/htdocs/public/shopware-installer.phar.php(79): Phar::webPhar() #10 {main} thrown in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php on line 37

Oops! An Error Occurred

The server returned a „500 Internal Server Error“.

Das Error Log zeigt dann folgende beiden Fehler vor dem Abbruch:

[Tue Jun 13 09:29:56.389384 2023] [php:error] [pid 12884] [client 192.168.16.12:35714] PHP Fatal error: Uncaught Error: Class „Locale“ not found in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php:37\nStack trace:\n#0 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(71): Symfony\Component\Translation\LocaleSwitcher->setLocale()\n#1 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(42): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener->setLocale()\n#2 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener->onKernelRequest()\n#3 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()\n#4 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()\n#5 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()\n#6 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel->handleRaw()\n#7 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/Kernel.php(184): Symfony\Component\HttpKernel\HttpKernel->handle()\n#8 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/index.php(32): Symfony\Component\HttpKernel\Kernel->handle()\n#9 /var/www/shopware6/htdocs/public/shopware-installer.phar.php(79): Phar::webPhar()\n#10 {main}\n thrown in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php on line 37

[Tue Jun 13 09:29:56.392137 2023] [php:notice] [pid 12884] [client 192.168.16.12:35714] [critical] Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: „Error: Uncaught Error: Class „Locale“ not found in phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php:37\nStack trace:\n#0 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(71): Symfony\Component\Translation\LocaleSwitcher->setLocale()\n#1 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php(42): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener->setLocale()\n#2 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Symfony\Component\HttpKernel\EventListener\LocaleAwareListener->onKernelRequest()\n#3 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()\n#4 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()\n#5 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(139): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()\n#6 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel->handleRaw()\n#7 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/http-kernel/Kernel.php(184): Symfony\Component\HttpKernel\HttpKernel->handle()\n#8 phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/index.php(32): Symfony\Component\HttpKernel\Kernel->handle()\n#9 /var/www/shopware6/htdocs/public/shopware-installer.phar.php(79): Phar::webPhar()\n#10 {main}\n thrown“ at phar:///var/www/shopware6/htdocs/public/shopware-installer.phar.php/vendor/symfony/translation/LocaleSwitcher.php line 37

Kann mir bitte jemand sagen, was zu tun ist.

Schon apt-get install php8.1-intl probiert?

Vielen Dank für den Tip. Hat funktioniert.

1 „Gefällt mir“

Hi
Super, das freut mich. :smiley:
Könntest du meinen Beitrag als Lösung markieren?
Dann sehen das andere mit ähnlichen Problemen besser.

MFG
Daniel