# Fehler im Update Skript - Updater v1.1.3 (v3.5.6 auf 4)

**URL:** https://forum.shopware.com/t/fehler-im-update-skript-updater-v1-1-3-v3-5-6-auf-4/29626
**Category:** Shopware 3.5
**Tags:** installation--gettin
**Created:** [14. August 2015 um 10:18 UTC](https://forum.shopware.com/t/fehler-im-update-skript-updater-v1-1-3-v3-5-6-auf-4/29626 "2015-08-14T10:18:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kaiwe](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@kaiwe](https://forum.shopware.com/u/kaiwe)
#### Post date: [14. August 2015 um 10:18 UTC](https://forum.shopware.com/t/fehler-im-update-skript-updater-v1-1-3-v3-5-6-auf-4/29626/1 "2015-08-14T10:18:03Z")

</div>

Hallo zusammen, wir haben aktuell noch einen Shopware Shop 3.5.6 bei Profihost am Laufen, Ziel ist zunächst ein Upgrade auf shopware 4 (später dann auf 5). Ich habe mir dazu das folgende Update Skript heruntergeladen: Updater Shopware 3.5.6/3.5.7 auf Shopware 4.1.2 - Updater Version 1.1.3 (Stand 19.09.2013) Datei: [http://releases.s3.shopware.com/updater … 1439385929](http://releases.s3.shopware.com/updater%5C_4.1.2.zip?%5C_ga=1.58150188.7480400.1439385929) Nach Entpacken des Archivs und Upload des Inhaltes nach /upload/ kommt beim Aufruf nach dem Login die folgende Fehlermeldung: ------------------------------------------------- Slim Application Error The application could not run because of the following error: Details Type: ErrorException Code: 2 Message: strpos() expects parameter 1 to be string, array given File: /marnxwnl/www.meine-domain.de/update/libs/Shopware/Update.php Line: 2252 Trace #0 [internal function]: Slim\Slim-\>handleErrors(2, ‘strpos() expect…’, ‘/marnxwnl/www.m…’, 2252, Array) #1 /marnxwnl/www.meine-domain.de/update/libs/Shopware/Update.php(2252): strpos(Array, ‘4.0.’) #2 /marnxwnl/www.meine-domain.de/update/libs/Shopware/Update.php(323): Shopware\_Update-\>getCustomList() #3 [internal function]: Shopware\_Update-\>{closure}() #4 /marnxwnl/www.meine-domain.de/update/libs/Slim/Router.php(172): call\_user\_func\_array(Object(Closure), Array) #5 /marnxwnl/www.meine-domain.de/update/libs/Slim/Slim.php(1222): Slim\Router-\>dispatch(Object(Slim\Route)) #6 /marnxwnl/www.meine-domain.de/update/libs/Slim/Middleware/Flash.php(86): Slim\Slim-\>call() #7 /marnxwnl/www.meine-domain.de/update/libs/Slim/Middleware/MethodOverride.php(94): Slim\Middleware\Flash-\>call() #8 /marnxwnl/www.meine-domain.de/update/libs/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride-\>call() #9 /marnxwnl/www.meine-domain.de/update/libs/Slim/Slim.php(1174): Slim\Middleware\PrettyExceptions-\>call() #10 /marnxwnl/www.meine-domain.de/update/index.php(65): Slim\Slim-\>run() #11 {main} ------------------------------------------------- Offenbar übergibt das Skript ein Array als Parameter an die Funktion strpos?? Aktuell wird php 5.6 verwendet. Was muß ich tun, um weitermachen zu können? Danke und viele Grüße Kai

---

<div class="post-metadata">

### Author: ![Mike\_W](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@Mike\_W](https://forum.shopware.com/u/Mike_W)
#### Post date: [26. April 2016 um 10:32 UTC](https://forum.shopware.com/t/fehler-im-update-skript-updater-v1-1-3-v3-5-6-auf-4/29626/2 "2016-04-26T10:32:53Z")

</div>

Hey Kai, hast du das Problem gelöst bekommen? Ich habe gerade das selbe Problem hier ☹

---

<div class="post-metadata">

### Author: ![pixelworkz](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pixelworkz](https://forum.shopware.com/u/pixelworkz)
#### Post date: [30. Mai 2016 um 12:48 UTC](https://forum.shopware.com/t/fehler-im-update-skript-updater-v1-1-3-v3-5-6-auf-4/29626/3 "2016-05-30T12:48:22Z")

</div>

Gerade das gleiche Problem gehabt. Habe es gelöst in dem ich in libs/Shopware/Update.php, in getCustomList() direkt vor dem verursachendem “if”, folgenden Code ergänzt habe:

```
if (is_array($product['attributes']['shopware_compatible'])) {
    $product['attributes']['shopware_compatible'] = $product['attributes']['shopware_compatible'][0];
}

```

Damit lief das Update dann durch.

---

<div class="post-metadata">

### Author: ![Lette2012](https://avatars.discourse-cdn.com/v4/letter/l/a9adbd/32.png) [@Lette2012](https://forum.shopware.com/u/Lette2012)
#### Post date: [2. Juni 2017 um 10:32 UTC](https://forum.shopware.com/t/fehler-im-update-skript-updater-v1-1-3-v3-5-6-auf-4/29626/4 "2017-06-02T10:32:46Z")

</div>

@pixelworkz‍ Hallo können sie mal bitte die Zeilen 2250-2260 mit posten?

damit ich sehen kann ,wie und wo sie das genau eingefügt haben?

Bin neuling und bei mir funktioniert es nicht.

mfg

Lette2012
