# Critical Error bei Update auf Shopware 6.5

**URL:** <https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694>\
**Category:** Shopware 6 (German)\
**Created:** [10. März 2025 um 10:49 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694 "2025-03-10T10:49:19Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![chschmitt](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@chschmitt](https://forum.shopware.com/u/chschmitt)\
**Post date:** [10. März 2025 um 10:49 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/1 "2025-03-10T10:49:19Z")

</div>

Hallo zusammen,

wir wollten gestern abend ein Shopware Update über das Backend von Version 6.4.20 auf 6.5 machen. Nun bekommen wir einen Critical Error geworfen und können leider nicht viel damit anfangen:

Symfony\Component\ErrorHandler\Error\UndefinedMethodError {#15  
#message: „Attempted to call an undefined method named „getKernel“ of class „Shopware\Core\Kernel“.“  
#code: 0  
#file: „/var/www/clients/client2/web13/web/sw6/bin/console“  
#line: 51  
trace: {  
/var/www/clients/client2/web13/web/sw6/bin/console:51 {  
{closure}  
›  
› $application = new Application($kernel-\>getKernel());  
› $kernel-\>getKernel()-\>boot();  
}  
/var/www/clients/client2/web13/web/sw6/vendor/autoload\_runtime.php:24 { …}  
/var/www/clients/client2/web13/web/sw6/bin/console:17 { …}  
}  
}  
2025-03-09T21:10:35+00:00 [info] User Deprecated: The „url“ connection parameter is deprecated. Please use Doctrine\DBAL\Tools\DsnParser to parse a database url before calling Doctrine\DBAL\DriverManager. (DriverManager.php:257 called by DriverManager.php:173, [Standalone DSN parser by derrabus · Pull Request #5843 · doctrine/dbal · GitHub](https://github.com/doctrine/dbal/pull/5843), package doctrine/dbal)  
2025-03-09T21:10:35+00:00 [info] User Deprecated: Not configuring a schema manager factory is deprecated. Use Doctrine\DBAL\Schema\DefaultSchemaManagerFactory which is going to be the default in DBAL 4. (Connection.php:227 called by DriverManager.php:197, [Create an easy way to extend the schema manager · Issue #5812 · doctrine/dbal · GitHub](https://github.com/doctrine/dbal/issues/5812), package doctrine/dbal)  
2025-03-09T21:10:35+00:00 [critical] Uncaught Error: Call to undefined method Shopware\Core\Kernel::getKernel()

Es wäre super, wenn uns hier jemand helfen könnte. Wir haben das Update vor ein paar Wochenin einer geclonten Testumgebung problemlos durchführen können.

Viele Grüße,

Christian

---

<div class="post-metadata">

**Author:** ![b.david](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@b.david](https://forum.shopware.com/u/b.david)\
**Post date:** [10. März 2025 um 10:53 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/2 "2025-03-10T10:53:31Z")

</div>

Hallo Christian,  
sind die Plugins mal deaktiviert worden ?

---

<div class="post-metadata">

**Author:** ![chschmitt](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@chschmitt](https://forum.shopware.com/u/chschmitt)\
**Post date:** [10. März 2025 um 10:55 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/3 "2025-03-10T10:55:13Z")

</div>

Hallo,

ja, vor dem Update haben wir alle Plugins deaktiviert.

Viele Grüße,

Christian

---

<div class="post-metadata">

**Author:** ![frip-tech.de](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/frip-tech.de/32/24453_2.png) [@frip-tech.de](https://forum.shopware.com/u/frip-tech.de)\
**Post date:** [10. März 2025 um 12:09 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/4 "2025-03-10T12:09:17Z")

</div>

> [@chschmitt](#):
>
> Symfony\Component\ErrorHandler\Error\UndefinedMethodError {#15  
> #message: „Attempted to call an undefined method named „getKernel“ of class „Shopware\Core\Kernel“.“

Wo hostest Du bitte? s. auch [Fehlermeldung Uncaught Error: Call to undefined function](https://forum.shopware.com/t/fehlermeldung-uncaught-error-call-to-undefined-function/102164)

---

<div class="post-metadata">

**Author:** ![chschmitt](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@chschmitt](https://forum.shopware.com/u/chschmitt)\
**Post date:** [10. März 2025 um 12:15 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/5 "2025-03-10T12:15:22Z")

</div>

Bei Timme Hosting. Bisher hatten wir nie Probleme beim Update.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [10. März 2025 um 13:10 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/6 "2025-03-10T13:10:46Z")

</div>

> [@chschmitt](#):
>
> Attempted to call an undefined method named „getKernel“ of class „Shopware\Core\Kernel“

Da wird vermutlich etwas mit composer schief gelaufen sein, wenn es die entsprechende Methode nicht findet. Schon nachgesehen, ob in der .env bzw. env.local anlegen, der Pfad zu Composer korrekt ist?

> <https://github.com/shopware/shopware/blob/d9cfa98d366087f3793ac25654801abd3f2a7742/src/WebInstaller/Resources/flex-config/bin/console#L9>

---

<div class="post-metadata">

**Author:** ![chschmitt](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@chschmitt](https://forum.shopware.com/u/chschmitt)\
**Post date:** [11. März 2025 um 11:55 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/7 "2025-03-11T11:55:40Z")

</div>

Hallo. Der Pfad in der .env ist korrekt eingetragen. Ich habe parallel mal ein Support Ticket eröffnet. Das seltsame ist, dass das Update auf dem gleichen Testsystem vor ein paar Wochen noch problemlos durchgelaufen ist.

---

<div class="post-metadata">

**Author:** ![raymond-de](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raymond-de](https://forum.shopware.com/u/raymond-de)\
**Post date:** [12. März 2025 um 03:56 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/8 "2025-03-12T03:56:56Z")

</div>

Warum auf 6.5 und nicht auf 6.6? Bald gibt’s nur noch Sicherheitsupdates hierfür: [Shopware Release Policy | Shopware Documentation](https://developer.shopware.com/release-notes/)

Oder geht ihr nach 6.5 weiter direkt auf 6.6?

---

<div class="post-metadata">

**Author:** ![chschmitt](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@chschmitt](https://forum.shopware.com/u/chschmitt)\
**Post date:** [12. März 2025 um 09:06 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/9 "2025-03-12T09:06:24Z")

</div>

Nach dem Update auf 6.5 soll direkt auf 6.6 geupdated werden. Nur brauchen wir vorher den Zwischenschritt zu 6.5.

---

<div class="post-metadata">

**Author:** ![ChristianF](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ChristianF](https://forum.shopware.com/u/ChristianF)\
**Post date:** [12. März 2025 um 13:16 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/10 "2025-03-12T13:16:03Z")

</div>

Hallo, ich stehe vor dem gleichen Problem. Es wäre schön, wenn du dich melden könntest, sollte es eine Lösung geben.

---

<div class="post-metadata">

**Author:** ![b.david](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@b.david](https://forum.shopware.com/u/b.david)\
**Post date:** [12. März 2025 um 13:24 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/11 "2025-03-12T13:24:44Z")

</div>

Hallo zusammen,

für mich sieht das nach einem missglückten Updateprozess aus. Ich würde empfehlen noch einmal die UPDATE phar.php für die entsprechende Version hier zu laden und diese dann noch einmal auszuführen.

( Wenn ein Backup besteht am besten vorher den noch funktionsfähigen Shop mit der alten Version wiederherstellen ) falls nicht, dann nochmal direkt mittels der phar.php versuchen

---

<div class="post-metadata">

**Author:** ![ChristianF](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ChristianF](https://forum.shopware.com/u/ChristianF)\
**Post date:** [13. März 2025 um 13:32 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/12 "2025-03-13T13:32:51Z")

</div>

Hallo David,  
es ist definitiv ein missglückter Updateprozess, irgendetwas passt von den Abhängingkeiten her nicht. Weder über das Backend, die update.phar oder die Konsole ist ein Update möglich, ich habe mittlerweile den Kernel-Fehler beheben können. Ein `composer require shopware/platform 6.5.[version]` behebt das Problem. Nun funktionieren aber die DI nicht mehr.

```auto
Symfony\Component\Config\Exception\LoaderLoadException {#506
  #message: "There is no extension able to load the configuration for "elasticsearch" (in "/var/www/vhosts/.../config/packages/elasticsearch.yaml"). Looked for namespace "elasticsearch", found ""framework", "twig", "monolog", "debug", "web_profiler"" in /var/www/vhosts/.../config/packages/elasticsearch.yaml (which is loaded in resource "/var/www/vhosts/...")."
  #code: 0

```

Hat da jemand eine Idee?

---

<div class="post-metadata">

**Author:** ![chschmitt](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@chschmitt](https://forum.shopware.com/u/chschmitt)\
**Post date:** [13. März 2025 um 14:20 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/13 "2025-03-13T14:20:23Z")

</div>

Hallo Christian,  
bei uns lag es an einer veralteten console Datei im bin Ordner. Diese wurde beim Update nicht aktualisiert. Wir haben sie dann manuell ersetzt und dann lief das Update durch. Beim Update auf 6.6 mussten wird dann noch die messenger.yaml anpassen.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [13. März 2025 um 14:22 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/14 "2025-03-13T14:22:29Z")

</div>

> [@ChristianF](#):
>
> `/config/packages/elasticsearch.yaml`

Falls du ElasticSearch nicht nutzt, lösche die Konfigurationsdatei.

---

<div class="post-metadata">

**Author:** ![Moorleiche](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Moorleiche](https://forum.shopware.com/u/Moorleiche)\
**Post date:** [13. März 2025 um 15:39 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/15 "2025-03-13T15:39:27Z")

</div>

Hatte das Problem heute auch beim Update von 6.5 auf 6.6.10.2

Lösung:

Folgende Dateien habe ich manuell überschrieben

> <https://github.com/shopware/recipes/blob/main/shopware/core/6.6/bin/console>

> <https://github.com/shopware/shopware/blob/v6.6.10.2/public/index.php>

Hat danach wieder funktioniert

---

<div class="post-metadata">

**Author:** ![Muehle](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@Muehle](https://forum.shopware.com/u/Muehle)\
**Post date:** [26. März 2025 um 09:58 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/16 "2025-03-26T09:58:36Z")

</div>

Kannst Du bitte Deine genaue Vorgehensweise mitteilen, ich kann auch nicht von 6.5.7.3 auf 6.6.10.2 updaten

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [26. März 2025 um 10:00 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/17 "2025-03-26T10:00:12Z")

</div>

Er hat die Inhalte der Dateien mit denen aus GitHub ersetzt.

bin/console  
public/index.php

---

<div class="post-metadata">

**Author:** ![Muehle](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@Muehle](https://forum.shopware.com/u/Muehle)\
**Post date:** [26. März 2025 um 10:00 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/18 "2025-03-26T10:00:37Z")

</div>

Vor oder nach dem Updateversuch?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [26. März 2025 um 10:02 UTC](https://forum.shopware.com/t/critical-error-bei-update-auf-shopware-6-5/106694/19 "2025-03-26T10:02:43Z")

</div>

Sehr wahrscheinlich vorher, da das Update ja bereits den Fehler wirft und nicht durchläuft.
