Scroll Top

Slim Application Error – Shopware Sicherheitsupdate 5.7.12

Shopware hat heute mal wieder ein Sicherheitsupdate (5.7.12) rausgebracht.

Leider wurde es wohl nicht sauber und ausführlich getestet, denn unter Umständen (je nach Server-Konfiguration) erscheint beim Shopware Update über das Shopware-Backend folgender Fehler:

Slim Application Error

The application could not run because of the following error:
Details
Type: ErrorException
Code: 8192
Message: Function get_magic_quotes_gpc() is deprecated
File: /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Http/Util.php
Line: 60
Trace
#0 /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Http/Util.php(60): Slim\Slim::handleErrors()
#1 /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Http/Request.php(226): Slim\Http\Util::stripSlashesIfMagicQuotes()
#2 /var/www/vhosts/meine-domain.de/httpdocs/recovery/update/src/Controller/RequirementsController.php(112): Slim\Http\Request->get()
#3 /var/www/vhosts/meine-domain.de/httpdocs/recovery/update/src/app.php(135): Shopware\Recovery\Update\Controller\RequirementsController->checkRequirements()
#4 [internal function]: {closure}()
#5 /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Route.php(468): call_user_func_array()
#6 /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()
#7 /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#8 /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#9 /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#10 /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\PrettyExceptions->call()
#11 /var/www/vhosts/meine-domain.de/httpdocs/recovery/update/index.php(58): Slim\Slim->run()
#12 {main}

Nachdem der erste Schock verdaut ist, hier die gute Nachricht:
Es lässt sich sehr leicht beheben.

Es muss lediglich eine Zeile in einer PHP Datei des Shopware-Update Pakets getauscht werden:

In der Datei /var/www/vhosts/meine-domain.de/httpdocs/recovery/common/vendor/slim/slim/Slim/Http/Util.php

Zeile 60: 

Vorher: $strip = is_null($overrideStripSlashes) ? get_magic_quotes_gpc() : $overrideStripSlashes;
Neu: $strip = is_null($overrideStripSlashes) ? false : $overrideStripSlashes;

Datei speichern und die Update-Seite neu laden.
Somit läuft das Shopware Update sauber durch

Hinterlasse einen Kommentar

Sie müssen eingeloggt sein , um einen Kommentar schreiben zu können.