Fatal Error! Ich komme nicht mehr ins Backend und der Shop ist offline!

Hallo zusammen,

wenn ich Versuche ins Backend zu kommen, bekomme ich folgenden Fehler:

Fatal error : Uncaught ArgumentCountError: Too few arguments to function Shopware_Plugins_Core_ErrorHandler_Bootstrap::errorHandler(), 4 passed and exactly 5 expected in /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Plugins/Default/Core/ErrorHandler/Bootstrap.php:183 Stack trace: #0 [internal function]: Shopware_Plugins_Core_ErrorHandler_Bootstrap->errorHandler() #1 /var/www/vhosts/ricordea-bay.de/httpdocs/vendor/symfony/dependency-injection/Container.php(516): trigger_error() #2 /var/www/vhosts/ricordea-bay.de/httpdocs/vendor/symfony/dependency-injection/Container.php(307): Symfony\Component\DependencyInjection\Container->normalizeId() #3 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(204): Symfony\Component\DependencyInjection\Container->get() #4 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(138): Shopware\Components\DependencyInjection\Container->doLoad() #5 /var/www/vhosts/ricordea-bay.de/httpdocs/var/cache/production_201906060858/proxies/ShopwareProduction9889b16955cbd681e260f06e6324f343f7fb0911ProjectContainer.php(1862): Shopware\Components\DependencyInjection\Container->get() #6 /var/www/vhosts/ricordea-bay.de/httpdocs/vendor/symfony/dependency-injection/Container.php(306): ShopwareProduction9889b16955cbd681e260f06e6324f343f7fb0911ProjectContainer->getModelsService() #7 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(204): Symfony\Component\DependencyInjection\Container->get() #8 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Components/DependencyInjection/Container.php(138): Shopware\Components\DependencyInjection\Container->doLoad() #9 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Plugin/Bootstrap.php(120): Shopware\Components\DependencyInjection\Container->get() #10 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Plugins/Community/Backend/SwagImportExport/Bootstrap.php(126): Enlight_Plugin_Bootstrap->get() #11 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Plugin/Bootstrap.php(86): Shopware_Plugins_Backend_SwagImportExport_Bootstrap->afterInit() #12 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Plugin/PluginCollection.php(86): Enlight_Plugin_Bootstrap->setCollection() #13 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Plugin/Namespace/Config.php(95): Enlight_Plugin_PluginCollection->registerPlugin() #14 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Plugin/PluginCollection.php(114): Enlight_Plugin_Namespace_Config->load() #15 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Event/Handler/Plugin.php(99): Enlight_Plugin_PluginCollection->get() #16 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Event/Handler/Plugin.php(142): Enlight_Event_Handler_Plugin->Plugin() #17 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Event/EventManager.php(219): Enlight_Event_Handler_Plugin->execute() #18 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Library/Enlight/Controller/Front.php(131): Enlight_Event_EventManager->notify() #19 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Kernel.php(202): Enlight_Controller_Front->dispatch() #20 /var/www/vhosts/ricordea-bay.de/httpdocs/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle() #21 /var/www/vhosts/ricordea-bay.de/httpdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #22 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Components/HttpCache/AppCache.php(260): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #23 /var/www/vhosts/ricordea-bay.de/httpdocs/vendor/symfony/http-kernel/HttpCache/HttpCache.php(238): Shopware\Components\HttpCache\AppCache->forward() #24 /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Components/HttpCache/AppCache.php(105): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass() #25 /var/www/vhosts/ricordea-bay.de/httpdocs/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #26 {main} thrown in /var/www/vhosts/ricordea-bay.de/httpdocs/engine/Shopware/Plugins/Default/Core/ErrorHandler/Bootstrap.php on line 183

Kann mir hier bitte jemand weiterhelfen?

Ganz lieben Dank und viele Grüße,
Michael

Hallo Michael,

kürzlich die PHP version hochgesetzt? Welche Shopware Version setzt du ein?

Viele Grüße aus Schöppingen
Michael Telgmann

Hallo @Michael_Telgmann !

Ich habe das selbe problem nach dem update auf PHP 8.0 (auch in 8.1).

Backend und Frontend nicht mehr erreichbar, und das Error Log sagt folgendes:
[Wed Nov 16 10:22:04 2022] [php:error] [pid 1971] [client 217.231.208.162] [host lclux.de] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Shopware_Plugins_Core_ErrorHandler_Bootstrap::errorHandler(), 4 passed and exactly 5 expected in /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Plugins/Default/Core/ErrorHandler/Bootstrap.php:182\nStack trace:\n#0 [internal function]: Shopware_Plugins_Core_ErrorHandler_Bootstrap-]errorHandler(16384, 'The "events" se...', '/is/htdocs/wp12...', 282)\n#1 /is/htdocs/wp12824571_ER5TRZSU0P/www/vendor/symfony/dependency-injection/Container.php(282): trigger_error('The "events" se...', 16384)\n#2 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Components/DependencyInjection/Container.php(197): Symfony\\Component\\DependencyInjection\\Container-]get('events')\n#3 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Components/DependencyInjection/Container.php(143): Shopware\\Components\\DependencyInjection\\Container-]doLoad('monolog.handler...', 1)\n#4 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Components/ContainerAwareEventManager.php(191): Shopware\\Components\\DependencyInjection\\Container-]get('monolog.handler...')\n#5 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Components/ContainerAwareEventManager.php(138): Shopware\\Components\\ContainerAwareEventManager-]lazyLoad('enlight_control...')\n#6 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Library/Enlight/Event/EventManager.php(219): Shopware\\Components\\ContainerAwareEventManager-]getListeners('enlight_control...')\n#7 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Library/Enlight/Controller/Front.php(156): Enlight_Event_EventManager-]notify('Enlight_Control...', Object(Enlight_Controller_EventArgs))\n#8 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Kernel.php(202): Enlight_Controller_Front-]dispatch()\n#9 /is/htdocs/wp12824571_ER5TRZSU0P/www/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\\Kernel-]handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#10 /is/htdocs/wp12824571_ER5TRZSU0P/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\\Component\\HttpKernel\\HttpCache\\SubRequestHandler::handle(Object(Shopware\\Kernel), Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#11 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache-]forward(Object(Symfony\\Component\\HttpFoundation\\Request), true, NULL)\n#12 /is/htdocs/wp12824571_ER5TRZSU0P/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(420): Shopware\\Components\\HttpCache\\AppCache-]forward(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#13 /is/htdocs/wp12824571_ER5TRZSU0P/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache-]fetch(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#14 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Components/HttpCache/AppCache.php(189): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache-]lookup(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#15 /is/htdocs/wp12824571_ER5TRZSU0P/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\\Components\\HttpCache\\AppCache-]lookup(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#16 /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Components/HttpCache/AppCache.php(116): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache-]handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#17 /is/htdocs/wp12824571_ER5TRZSU0P/www/shopware.php(122): Shopware\\Components\\HttpCache\\AppCache-]handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#18 {main}\n thrown in /is/htdocs/wp12824571_ER5TRZSU0P/www/engine/Shopware/Plugins/Default/Core/ErrorHandler/Bootstrap.php on line 182

Wie bekomme ich das gefixed?

Hallo,

versuch es mal mit PHP 7.4 - vermutlich hast Du da nicht die aktuellste Shopware 5.7 Version oder ein Plugin aktiv, welches nicht mit PHP 8 kompatibel ist.

Viele Grüße

1 „Gefällt mir“

Hallo @SCOOPEX !

Leider bei HostEurope nicht mehr verfügbar. Die haben 7.4 komplett abgeschaltet. Kunde hat nicht upgedatet.

Hallo,

dann muss evtl. der Hoster gewechselt werden oder das Update muss halt erfolgen.

Viele Grüße

Kann ich das update denn manuell einspielen, ohne dass ich Zugriff aufs backend habe?

Hallo,

Du kannst unter https://www.shopware.com/changelog-sw5/ das Update Paket herunterladen und per FTP einspielen (wichtig: NICHT das Installations-Paket verwenden).

Bildschirm­foto 2022-11-16 um 11.50.10

Danach kannst Du den Updater über https://www.deineshop-domain.de/recovery/update aufrufen.

Evtl. solltest Du vorher Drittanbieter-Plugins in der Datenbank-Tabelle s_core_plugins deaktivieren, da nicht-kompatible Plugins das Update abbrechen können. Hier bei dem entsprechenden Plugin bei ACTIVE statt 1 eine 0 setzen.

Und natürlich vor dem Update Shopware + Datenbank sichern …

Viel Glück!