Update 4.8.x auf 4.9.x · best practice
Ist es in Anbetracht der vielen neuen Features und den damit verbundenen Änderungen von Ordnern und Dateien sinnvoll:
- statt eines Updates die Version 4.9 komplett neu zu installieren und dann lediglich die bestehenden files- und template-Ordner zu übertragen und die bestehenden Datenbankinhalte zu importieren (was je nach Hoster ja sehr schnell erledigt ist)
- oder sind die erforderlichen Anpassungen so wenige dass das Update schneller wie gewohnt via Console oder den CM durchgeführt werden kann?
Was wäre bei einem Update (ohne Erweiterungen) mit Weg 2 alles zu tun? Gibt es da schon eine Zusammenstellung? Danke für eure Tipps und Hinweise!
( Weg 1 hat natürlich den charmanten Nebeneffekt, dass das Livesystem so lange unangetastet bleibt bis alles passt :-) )
4.9.x Frontend und Backend laufen nicht mehr richtig
Darf ich das Thema nochmals aufwärmen? Ich habe eine Website, die ich nicht von 4.8.* auf 4.9.* umstellen kann, die anderen gingen problemlos. Die 4.9-Installation endet mit einem OK, ich kann auch die Datenbank aktualisieren. Contao-Manager und Installtool laufen auch. Ich leere jeweils auch alle Caches. Aber Frontend und Backend zeigen das Layout nicht an, Links und Bilder funktionieren nicht. Hat jemand eine Idee, woran das liegen könnte?
Da die Seite nicht live ist, kann ich sie im Moment in dem üblen Zustand belassen. Rufe ich direkt die Domain auf, wird die URL verstümmelt: https://.index.php. An der .htaccess kann es nicht liegen, denn die hat unter der Version 4.8 genauso funktioniert.
Eine Unterseite kann ich aber aufrufen: https://test.zmaag.ch/projekte.html
Die Browserkonsole meldet diverse Fehler, mit denen ich leider nicht viel anfangen kann.
Kann es sein, dass trotz der Erfolgsmeldung beim Update-Prozess etwas schiefgelaufen ist? Hier die Konsolenausgabe des Updates:
Code:
Pakete werden aktualisiert
Konsolentask abgeschlossen!
Der Hintergrund-Prozess wurde erfolgreich beendet. Prüfen Sie die Konsolenausgabe für weitere Details.
Datenbank aktualisieren
$ /usr/bin/php -q /var/www/eis96pw/web/contao-manager.phar.php composer require contao/manager-bundle=4.9.* contao/news-bundle=4.9.* contao/calendar-bundle=4.9.* contao/faq-bundle=4.9.* contao/comments-bundle=4.9.* contao/newsletter-bundle=4.9.* contao/listing-bundle=4.9.* --no-suggest --no-update --no-scripts --prefer-stable --sort-packages --no-ansi --no-interaction
/var/www/eis96pw/composer.json has been updated
# Process terminated with exit code 0
# Result: OK
$ /usr/bin/php -q /var/www/eis96pw/web/contao-manager.phar.php composer remove contao/core-bundle contao/installation-bundle --no-update --no-scripts --no-ansi --no-interaction
contao/core-bundle is not required in your composer.json and has not been removed
contao/installation-bundle is not required in your composer.json and has not been removed
# Process terminated with exit code 0
# Result: OK
> Resolving dependencies using Composer Cloud v2.4.3
# Job ID Ewom69gWglq3KpVuKVUGgM40Uf4wD5tqosQoMEQXELpyRGc3rxNRnb27b4NS3X5MbpVY3CdOIDIXL31b1BdXXbJcgkmGnRzGNrKOZUog4cwjpKLZ2qIctpENcNqRJ completed in 45 seconds
# Memory usage: 461.88MB (peak: 2220.67MB), time: 42.91s.
$ /usr/bin/php -q /var/www/eis96pw/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
Added the web/app.php file.
Added the web/index.php file.
Added the web/preview.php file.
// Clearing the cache for the prod environment with debug
// false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
// Clearing the cache for the dev environment with debug
// true
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.
// Warming up the cache for the prod environment with debug
// false
[OK] Cache for the "prod" environment (debug=false) was successfully warmed.
Trying to install assets as relative symbolic links.
--- -------------------------------- ------------------
Bundle Method / Error
--- -------------------------------- ------------------
? ContaoCoreBundle relative symlink
? MarkocupicGalleryCreatorBundle relative symlink
? ContaoFaqBundle relative symlink
? ContaoCommentsBundle relative symlink
? ContaoNewsBundle relative symlink
? ContaoCalendarBundle relative symlink
? ContaoNewsletterBundle relative symlink
--- -------------------------------- ------------------
[OK] All assets were successfully installed.
--- ---------------------------------- ----------------------------------------------------------------
Symlink Target / Error
--- ---------------------------------- ----------------------------------------------------------------
? web/files/downloads files/downloads
? web/files/gallery_creator_albums files/gallery_creator_albums
? web/files/zmaag files/zmaag
? web/files/bilder files/bilder
? system/themes/flexible vendor/contao/core-bundle/src/Resources/contao/themes/flexible
? web/assets assets
? web/system/themes system/themes
? system/logs var/logs
--- ---------------------------------- ----------------------------------------------------------------
Done! Please open the Contao install tool or run contao:migrate on the command line to make sure the database is up-to-date.
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 15 installs, 52 updates, 10 removals
- Removing symfony/inflector (v5.1.4)
- Removing sensiolabs/ansi-to-html (v1.2.0)
- Removing ralouphie/getallheaders (3.0.3)
- Removing oyejorge/less.php (v1.7.0.14)
- Removing league/uri-manipulations (1.5.0)
- Removing league/uri (5.3.0)
- Removing guzzlehttp/psr7 (1.6.1)
- Removing guzzlehttp/promises (v1.3.1)
- Removing guzzlehttp/guzzle (6.5.5)
- Removing php-http/guzzle6-adapter (v1.1.1)
- Updating composer/package-versions-deprecated (1.5.1 => 1.11.99): As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' may remediate them.
Downloading (100%)
- Updating symfony/yaml (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/mime (v4.4.12 => v5.1.4): Downloading (100%)
- Updating symfony/http-foundation (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/event-dispatcher (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/var-dumper (v4.3.11 => v4.4.12): Downloading (100%)
- Installing symfony/error-handler (v4.4.12): Downloading (100%)
- Updating symfony/http-kernel (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/service-contracts (v1.1.9 => v2.1.3): Downloading (100%)
- Updating symfony/dependency-injection (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/filesystem (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/config (v4.3.11 => v4.4.12): Downloading (100%)
- Installing symfony/http-client-contracts (v2.1.3): Downloading (100%)
- Installing symfony/http-client (v4.4.12): Downloading (100%)
- Installing psr/http-factory (1.0.1): Downloading (100%)
- Installing psr/http-client (1.0.1): Downloading (100%)
- Updating php-http/httplug (v1.1.0 => 2.2.0): Downloading (100%)
- Updating php-http/client-common (1.10.0 => 2.3.0): Downloading (100%)
- Installing wikimedia/less.php (1.8.2): Downloading (100%)
- Installing webignition/disallowed-character-terminated-string (2.0): Downloading (100%)
- Installing webignition/robots-txt-file (3.0): Downloading (100%)
- Installing symfony/dom-crawler (v4.4.12): Downloading (100%)
- Installing nyholm/psr7 (1.3.0): Downloading (100%)
- Installing terminal42/escargot (0.6.1): Downloading (100%)
- Updating symfony/translation-contracts (v1.1.9 => v2.1.3): Downloading (100%)
- Updating symfony/twig-bundle (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/translation (v4.3.11 => v4.4.12): Downloading (100%)
- Installing symfony/property-info (v5.1.4): Downloading (100%)
- Updating symfony/property-access (v4.4.12 => v5.1.4): Downloading (100%)
- Updating symfony/security-http (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/security-guard (v4.4.0 => v4.4.12): Downloading (100%)
- Updating symfony/security-csrf (v4.4.12 => v5.1.4): Downloading (100%)
- Updating symfony/security-bundle (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/routing (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/process (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/monolog-bridge (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/lock (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/finder (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/var-exporter (v4.4.12 => v5.1.4): Downloading (100%)
- Updating symfony/cache-contracts (v1.1.9 => v2.1.3): Downloading (100%)
- Updating symfony/cache (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/framework-bundle (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/expression-language (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/console (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/asset (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony-cmf/routing (2.2.0 => 2.3.2): Downloading (100%)
- Updating symfony-cmf/routing-bundle (2.3.0 => 2.4.0): Downloading (100%)
- Installing ramsey/uuid (3.9.3): Downloading (100%)
- Updating nelmio/cors-bundle (1.5.6 => 2.1.0): Downloading (100%)
- Updating knplabs/knp-menu (2.6.0 => v3.1.2): Downloading (100%)
- Updating knplabs/knp-menu-bundle (v2.3.0 => v3.0.0): Downloading (100%)
- Installing dragonmantank/cron-expression (v2.3.0): Downloading (100%)
- Updating contao/imagine-svg (0.2.3 => 1.0.1): Downloading (100%)
- Updating contao/core-bundle (4.8.8 => 4.9.5): Downloading (100%)
- Updating contao/calendar-bundle (4.8.8 => 4.9.5): Downloading (100%)
- Updating contao/comments-bundle (4.8.8 => 4.9.5): Downloading (100%)
- Updating contao/faq-bundle (4.8.8 => 4.9.5): Downloading (100%)
- Updating contao/listing-bundle (4.8.8 => 4.9.5): Downloading (100%)
- Updating symfony/web-profiler-bundle (v4.3.11 => v4.4.12): Downloading (100%)
- Installing symfony/stopwatch (v4.4.12): Downloading (100%)
- Updating symfony/proxy-manager-bridge (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/dotenv (v4.3.11 => v4.4.12): Downloading (100%)
- Updating symfony/debug-bundle (v4.3.11 => v4.4.12): Downloading (100%)
- Updating contao/installation-bundle (4.8.8 => 4.9.5): Downloading (100%)
- Updating contao/manager-bundle (4.8.8 => 4.9.5): Downloading (100%)
- Updating contao/news-bundle (4.8.8 => 4.9.5): Downloading (100%)
- Updating contao/newsletter-bundle (4.8.8 => 4.9.5): Downloading (100%)
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Generating optimized autoload files
Deprecation Notice: Class League\Uri\Schemes\AbstractUri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///var/www/eis96pw/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class League\Uri\Schemes\Data located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///var/www/eis96pw/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class League\Uri\Schemes\File located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///var/www/eis96pw/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class League\Uri\Schemes\Ftp located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///var/www/eis96pw/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class League\Uri\Schemes\Http located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///var/www/eis96pw/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class League\Uri\Schemes\Uri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///var/www/eis96pw/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class League\Uri\Schemes\UriException located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///var/www/eis96pw/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class League\Uri\Schemes\Ws located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///var/www/eis96pw/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
75 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
# Process terminated with exit code 0
# Result: OK
---
### Prozess erfolgreich abgeschlossen ###
Könnte es etwas damit zu tun haben, dass die Dateien mit der PHP zip-Extension entpackt wurden statt mit unzip? Bei Contao-Version 4.8.x scheint das kein Problem zu sein.
Was ich noch vergessen habe zu erwähnen: Neben dem Contao-Paket nutze ich nur noch das Gallery Creator-Bundle.