upgrade auf typo3 6 - jweiland.net extension can be used in typo3 4.5-4.7, after upgrading to 6.2...

76
Upgrade auf TYPO3 6.2 Jochen Weiland TYPO3camp München 2014

Upload: truongthuy

Post on 13-Apr-2018

230 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Upgrade auf TYPO3 6.2

Jochen Weiland !!

TYPO3camp München 2014

Page 2: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht
Page 3: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Fakten

• Kunden lieben LTS Versionen

• Die meisten Projekte laufen mit 4.5

Page 4: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Fakten

• 3.5 Jahre seit dem Release 4.5

• 34 Release seitdem

Page 5: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Fakten

• 5 Major Releases:4.5 4.6 4.7 6.0 6.1 6.2 Jedes mit vielen neuen Features!

Page 6: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Dank an Patrick Lobacher (der alle Änderungen dokumentiert)

Page 7: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

550+ Seiten Änderungenhttp://typo3.org/download/release-notes/whats-new/

Page 8: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

www.lobacher.de

Page 9: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Fakten

• 500.000+ Web Seiten mit TYPO3

• weniger als 200 Tage zum Updaten!

• ~ 2.500 Updates pro Werktag!

Page 10: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Fakten

• ~ 1.000 TYPO3 Agenturen

• ~ 500 Upgrades für jede Agentur

• ~ 3 Upgrades pro Tag

Page 11: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Upgrade Vorbereiten

Page 12: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Wichtig

• Niemals ein Update direkt auf der Live-Seite

• Upgrade immer auf einer Kopie vornehmen

• Backup vorhanden? Wirklich?

Page 13: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Eure Wahl:

• Installation aufräumen, dann Kopie erstellen

• schneller, aber Änderungen an Live-Seite

• Kopie erstellen, dann Aufräumen

• sicherer, aber langsamer

Clean-up first: smaller database and project to copy, but you make changes in live system !Copy-first: you are on the safe side, but copying takes longer

Page 14: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Kopie Erstellen

• Komplette Dateistruktur des Projekts kopieren

Page 15: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Kopie der Datenbank

• Neue, leere Datenbank erstellen

• Collation: utf8_general_ci

• Datenbank duplizieren:mysqldump --opt -u user1 -ppassword1 olddatabase | mysql -u user2 -ppassword2 newdatabase

in typo3conf: !../../tools/mysqldump --opt -u root -psecret muster-45 | ../../tools/mysql -u root -psecret muster-t3dd14 !if database host is NOT 127.0.0.1, you need to specify host with -h host

Page 16: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Kopie Fertigstellen

• Neue Domain (VHost) erstellen und Domain-Records anpassen

• localconf.php (oder Install Tool): Zugangsdaten Datenbank anpassen

• TypoScript: baseURL anpassen

Page 17: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Installation Aufräumen• Lokale, nicht installierte Extensions

entfernen

Page 18: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht
Page 19: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Installierte, nicht benötigte Extensions

deinstallieren

Tipp: Extension „Additional Reports“

in our example we removed: lorem_ipsum, veguestbook, timtab, adminpanel, sbaccessiblecontent, lib, div

Page 20: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Ext: additional_reports

Page 21: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht
Page 22: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

when you try to delete an extension, the number of records in the database will be shown

Page 23: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Obsolete Extensions

• Funktioniert vielleicht in 6.2, aber Logfiles werden nicht mehr erstellt

Page 24: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Installation Aufräumen

!

• Database Analyzer im Install Tool

• Update Required Tables

• Remove unused tables

Page 25: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Remove unused Tables

Page 26: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Datenbank Verkleinern

• Tabellen leeren:

• cache_ …

• cachingframework_ …

• cf_ …

• sys_log, sys_stat, …

• tx_realurl_errorlog, …

SQL statement TRUNCATE will empty a table, DROP will delete a table

Page 27: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

For other tables: use phpmyadmin !For very large tables: delete (drop) table and re-create via install tool (compare table structure)

Page 28: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Extensions in 4.5 Aktualisieren

Page 29: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Extension Versionen (4.5)

Page 30: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Warnungen beim Upgrade

Page 31: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Warnung PHP Version

Page 32: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Extensions mit Update Skript

Page 33: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Deprecation Log

Page 34: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Namespacingtypo3/sysext/core/Migrations/Code

für IDE:

Page 35: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

PHP Version Prüfen

• TYPO3 4.5, 4.6 arbeiten PHP 5.2-5.5

• TYPO3 4.7 und höher benötigen PHP 5.3-5.5

some old extensions my not be compatible with PHP 5.3+ !update realurl Extension

Page 36: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Error Display Einschalten

Page 37: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Check ExplicitAllow/Deny

Important: if setting in field explicitADmode is empty, you need to change it to explicitDeny !in TYPO3 6.2, default is explicitAllow

Page 38: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Referenz Index

Make sure that all internal Database references are up-to-date !Using shell: make sure that path to php-cli version is correct !Make sure that user _cli_lowlevel exists

Page 39: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Referenz Index

Page 40: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Smooth Migration

• Erweiterungen extbase und fluid müssen installiert sein

• Extension smoothmigration installieren

• BE User _cli_smoothmigration anlegen

• Backend neu laden

smoothmigration extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it

Page 41: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Smooth Migration

Page 42: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Smooth Migration

Page 43: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Übersicht

Run the checks first, then switch to „Report“. Note that the spinner during „Check“ will never stop, so just start the „Check“ process, wait a minute or so and then look up the „Report“

Page 44: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Datenbank utf-8

In most cases you can’t change the MySQL server setting yourself, you need to make sure to use the forceCharset and setDBinit settings in the Install Tool correctly (see next slide)

Page 45: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Database utf-8

Important: if you change these settings, you may end up with unpredictable results in your database. It may be necessary to convert the database to UTF-8 format!

Page 46: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

phpmyadmin

Page 47: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

require_once

changed in cron_printlink (pi1, pi2) and sr_language_menu (pi1) !other occurrences will be fixed after updating extensions

Page 48: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Symlink Aktualisieren

• Auf neue TYPO3 Version ändern:typo3_src -> typo3_src-6.2.x

Updating index.php only necessary if not symlinked !

Page 49: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Install Tool Aufrufen

if from BE „no input file specified“: use URL project/typo3/install instead !if connection to DB fails with IP 127.0.0.1, use localhost instead !Note: on jweiland.net Hosting Packages the DB server is at 127.0.0.3 !

Page 50: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht
Page 51: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht
Page 52: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

After Uninstalling

Page 53: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Upgrade Wizard

Page 54: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Datenbank Prüfen

Don’t remove/rename fields yet, only add/modify if necessary

Page 55: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Cache Leeren

Page 56: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Admin User TSconfig

• options.clearCache.system = 1

Page 57: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Extensions Aktualisieren

Page 58: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht
Page 59: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Version nicht unterstützt?

ext_emconf.php

Page 60: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Nicht im TER? GIT Probieren!

• git.typo3.org

• Repository from author, e.g.github.com/jweiland-net/rlmp_tmplselector

Page 61: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Extension von git

• in typo3conf/ext:git clone https://github.com/jweiland-net/rlmp_tmplselector

sr_language_menu: Plugin neu konfigurieren, Static modules: static_info_tables und sr_language_menu neu einfügen !DefaultISOlanguage in TS setzen: plugin.tx_srlanguagemenu.settings.defaultLanguageISOCode = DE

Page 62: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Änderungen TypoScript

file.treatIdAsReference = 1

Page 63: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

DAM to FAL Migration

• Schauen wir uns mal an, wie Dateien behandelt werden

Page 64: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

TYPO3 4.x

local file

uploads/media uploads/pics

uploads/

fileadmin/….

direct upload RTE upload

upload through element browser

contentelement

typo3temp/…

BROWSER

rendered images

RTE linked files

Page 65: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

TYPO3 6.x - FAL

local file

fileadmin/user_uploaddirect upload

upload through element browser RTE upload

fileadmin/_processed_

BROWSER

rendered images

fileadmin/….

Page 66: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

TYPO3 4.x DAMlocal file

fileadmin/… uploads/media uploads/pics uploads/

tx_dam/….

upload in backend

index and meta-extraction

use in content

tx_dam_categories

local file

FTP Upload

Page 67: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

TYPO3 4.x DAMlocal file

fileadmin/… uploads/media uploads/pics uploads/

tx_dam

upload in backend

index and meta-extraction

use in content

tx_dam_categories

local file

FTP Upload

Page 68: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

add’l data

DAM to FAL Migrationtx_dam

tx_dam_categories

sys_file

sys_category

sys_file_metadata

ext:filemetadata

some fields may be lost (if they don’t exist in sys_file_metadata)

Page 69: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

DAM to FAL Migration• Extension dam_falmigration

https://github.com/froemken/t3ext-dam_falmigration

• Migrates tx_dam records to sys_file

• Migrates tx_dam metadata to sys_filemetadata

• Migrates media-tags from RTE to link-tags

• Migrates dam_category to sys_category

Page 70: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

DAM to FAL Migration

• typo3/cli_dispatch.phpsh extbase… [help] dammigration:migratedamrecords dammigration:migraterelations dammigration:migratedamcategories dammigration:migratedamcategoryrelations dammigration:migratedamselections dammigration:migratemediatagsinrte

execute this after upgrade has been made in install tool execute before editing content

Page 71: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Update Language Packs

Page 72: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Änderungen in Extbase

• New Property Mapper

• Recursive Validation

Page 73: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Scheduler Tasks

• It may be necessary to re-create scheduler tasks

Page 74: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Fragen ?

Page 75: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Download Slides

• http://jweiland.net/t3dd14

Page 76: Upgrade auf TYPO3 6 - jweiland.net extension can be used in TYPO3 4.5-4.7, after upgrading to 6.2 you can uninstall it. Smooth Migration. Smooth Migration. Übersicht

Let us be your host