# Update von 5.5.10 auf 5.6.4 schlägt fehl

**URL:** <https://forum.shopware.com/t/update-von-5-5-10-auf-5-6-4-schlagt-fehl/64237>\
**Category:** Administration\
**Created:** [24. Januar 2020 um 14:07 UTC](https://forum.shopware.com/t/update-von-5-5-10-auf-5-6-4-schlagt-fehl/64237 "2020-01-24T14:07:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttrahn](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@ttrahn](https://forum.shopware.com/u/ttrahn)\
**Post date:** [24. Januar 2020 um 14:07 UTC](https://forum.shopware.com/t/update-von-5-5-10-auf-5-6-4-schlagt-fehl/64237/1 "2020-01-24T14:07:57Z")

</div>

Hallo!

Ich bin der Anleitung [Shopware 5 - Update Guides - Shopware aktualisieren / updaten](https://docs.shopware.com/de/shopware-5-de/update-guides/shopware-aktualisieren-updaten) gefolgt und habe erfolgreich von 5.3 auf 5.4 und dann auf 5.5.10 upgedatet.

Das Update auf 5.6.4 schlägt nun fehl, da ich beim Aufruf von

```
php recovery/update/index.php

```

zwar die Update-Seite erhalte, dieses jedoch mit

```
Replace system files...
skipped...
Apply database migrations...

Warning: Unsupported declare 'strict_types' in /[PFADDESSHOPS]/engine/Shopware/Components/Migrations/Manager.php on line 2

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /[PFADDESSHOPS]/engine/Shopware/Components/Migrations/Manager.php on line 253

```

abbricht. Dies liegt wohl an der PHP-Version, die in der Konsole eingestellt ist (5.6).

Wenn ich nun aber

```
php73 recovery/update/index.php

```

oder eine andere 7er-PHP-Version verwende, erhalte ich direkt folgende Fehler:

```
X-Powered-By: PHP/7.3.10
Content-type: text/html; charset=UTF-8

Notice: Undefined index: REQUEST_METHOD in /[SHOPPFAD]/recovery/common/vendor/slim/slim/Slim/Environment.php on line 124

Notice: Undefined index: REMOTE_ADDR in /[SHOPPFAD]/recovery/common/vendor/slim/slim/Slim/Environment.php on line 127

Notice: Undefined index: SCRIPT_NAME in /[SHOPPFAD]/recovery/common/vendor/slim/slim/Slim/Environment.php on line 130

Notice: Undefined index: REQUEST_URI in /[SHOPPFAD]/recovery/common/vendor/slim/slim/Slim/Environment.php on line 131

Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /[SHOPPFAD]/recovery/common/vendor/slim/slim/Slim/Environment.php on line 135

Notice: Undefined index: SERVER_NAME in /[SHOPPFAD]/recovery/common/vendor/slim/slim/Slim/Environment.php on line 154
404 Page Not Foundbody{margin:0;padding:30px;font:12px/1.5 Helvetica,Arial,Verdana,sans-serif;}h1{margin:0;font-size:48px;font-weight:normal;line-height:48px;}strong{display:inline-block;width:65px;}404 Page Not FoundThe page you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly. If all else fails, you can visit our home page at the link below.Visit the Home Page

```

TL;DR:

Ich kann das Updateskript weder mit PHP 5.6, noch mit PHP 7 aufrufen.

&nbsp;

Hat jemand eine Idee?

---

<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:** [24. Januar 2020 um 14:09 UTC](https://forum.shopware.com/t/update-von-5-5-10-auf-5-6-4-schlagt-fehl/64237/2 "2020-01-24T14:09:58Z")

</div>

Die einzige gemeinesame PHP-Version zwischen SW 5.5 und 5.6. ist 7.2. Du musst also auch an der Konsole 7.2 nehmen.

---

<div class="post-metadata">

**Author:** ![ttrahn](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@ttrahn](https://forum.shopware.com/u/ttrahn)\
**Post date:** [24. Januar 2020 um 14:13 UTC](https://forum.shopware.com/t/update-von-5-5-10-auf-5-6-4-schlagt-fehl/64237/3 "2020-01-24T14:13:56Z")

</div>

Mit

```
php72 recovery/update/index.php

```

erhalte ich leider den selben Fehler.

---

<div class="post-metadata">

**Author:** ![ttrahn](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@ttrahn](https://forum.shopware.com/u/ttrahn)\
**Post date:** [27. Januar 2020 um 12:27 UTC](https://forum.shopware.com/t/update-von-5-5-10-auf-5-6-4-schlagt-fehl/64237/4 "2020-01-27T12:27:30Z")

</div>

Ok, hat sich erledigt. Es lag daran, dass beim Provider keine Umgebungsvariablen in der Konsole verfügbar sind.

Ein Aufruf von

```
www.MEINSHOP.TLD/recovery/update/index.php

```

hat den gewünschten Erfolg gebracht.
