You’re trying to decode an invalid JSON String: Error’; echo ‘Your server is running PHP version ’ . PHP_VERSION . ’ but Shopware 4 requires at least PHP 5.3.2’; echo ‘Fehler’; echo 'Auf Ihrem Server läuft PHP version ’ . PHP_VERSION . ‘, Shopware 4 benötigt mindestens PHP 5.3.2’; return; } // Check the database config if (file_exists(‘config.php’) && strpos(file_get_contents(‘config.php’), ‘%db.database%’) !== false) { header(‘Content-type: text/html; charset=utf-8’, true, 503); echo ‘Error’; echo ‘Shopware 4 must be configured installed before use. Please run the installer.’; echo ‘Fehler’; echo ‘Shopware 4 muss zunächst konfiguriert werden. Bitte führen Sie den Installer aus.’; return; } // Check for legacy update-script if (is_dir(‘update’)) { header(‘Content-type: text/html; charset=utf-8’, true, 503); header(‘Status: 503 Service Temporarily Unavailable’); header(‘Retry-After: 1200’); echo file_get_contents(__DIR__ . ‘/update/maintenance.html’); return; } // Check for active manual update if (is_dir(‘update-assets’)) { header(‘Content-type: text/html; charset=utf-8’, true, 503); header(‘Status: 503 Service Temporarily Unavailable’); header(‘Retry-After: 1200’); echo file_get_contents(__DIR__ . ‘/recovery/update/maintenance.html’); return; } // Check for active auto update if (is_file(‘files/update/update.json’)) { header(‘Content-type: text/html; charset=utf-8’, true, 503); header(‘Status: 503 Service Temporarily Unavailable’); header(‘Retry-After: 1200’); echo file_get_contents(__DIR__ . ‘/recovery/update/maintenance.html’); return; } // check for composer autoloader if (!file_exists(‘vendor/autoload.php’)) { header(‘Content-type: text/html; charset=utf-8’, true, 503); echo ‘Error’; echo ‘Please execute “composer install” from the command line to install the required dependencies for Shopware 4’; echo ‘Fehler’; echo ‘Bitte führen Sie zuerst “composer install” aus.’; return; } require __DIR__ . ‘/autoload.php’; use Shopware\Kernel; use Shopware\Components\HttpCache\AppCache; use Symfony\Component\HttpFoundation\Request; $environment = getenv(‘ENV’) ?: getenv(‘REDIRECT_ENV’) ?: ‘production’; $kernel = new Kernel($environment, $environment !== ‘production’); if ($kernel->isHttpCacheEnabled()) { $kernel = new AppCache($kernel, $kernel->getHttpCacheConfig()); } $request = Request::createFromGlobals(); $kernel->handle($request) ->send();