Update typo3 4.5 LTS to 6.2 LTS

73
Upgrade to TYPO3 6.2 Jochen Weiland Stefan Frömken Riona Kuthe T3DD14 - Eindhoven - The Netherlands

description

Update typo3 4.5 LTS to 6.2 LTS

Transcript of Update typo3 4.5 LTS to 6.2 LTS

Page 1: Update typo3 4.5 LTS to 6.2 LTS

Upgrade to TYPO3 6.2

Jochen Weiland Stefan Frömken

Riona Kuthe !

T3DD14 - Eindhoven - The Netherlands

Page 2: Update typo3 4.5 LTS to 6.2 LTS
Page 3: Update typo3 4.5 LTS to 6.2 LTS

Facts

• Customers love LTS

• Most Projects still on 4.5

Page 4: Update typo3 4.5 LTS to 6.2 LTS

Facts

• 3.5 Years since Release of 4.5

• 34 Releases since then

Page 5: Update typo3 4.5 LTS to 6.2 LTS

Facts

• 5 Major Releases:4.5 4.6 4.7 6.0 6.1 6.2 Each with many new features!

Page 6: Update typo3 4.5 LTS to 6.2 LTS

Thanks to Patrick Lobacher (who keeps track of the changes)

Page 7: Update typo3 4.5 LTS to 6.2 LTS

550+ Pages of Changeshttp://typo3.org/download/release-notes/whats-new/

Page 8: Update typo3 4.5 LTS to 6.2 LTS

www.lobacher.de

Page 9: Update typo3 4.5 LTS to 6.2 LTS

Facts

• 500.000+ Web Sites made with TYPO3

• less than 300 days left to update!

• ~ 2.000 Updates per work day!

Page 10: Update typo3 4.5 LTS to 6.2 LTS

Facts

• ~ 1.000 TYPO3 Agencies

• ~ 500 Upgrades for each Agency

• ~ 2.5 Upgrades per day

Page 11: Update typo3 4.5 LTS to 6.2 LTS

Preparing the Upgrade

Page 12: Update typo3 4.5 LTS to 6.2 LTS

Important

• Never ever on live site!

• Use a copy of live site for upgrade!

• Make sure you have a backup!

Page 13: Update typo3 4.5 LTS to 6.2 LTS

Your Choice:

• Clean-up installation, then make copy

• faster, but changes in live site

• Make copy, then clean-up installation

• safer, but slower

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: Update typo3 4.5 LTS to 6.2 LTS

Creating a Copy

• Copy complete project file structure

Page 15: Update typo3 4.5 LTS to 6.2 LTS

Creating a DB Copy

• Create new, empty database

• Collation: utf8_general_ci

• Duplicate the database: 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: Update typo3 4.5 LTS to 6.2 LTS

Finalize Copy

• Create new domain (virtual host) and update domain records accordingly

• localconf.php (or Install Tool): Enter new database parameters

• TypoScript: Adjust baseURL

Page 17: Update typo3 4.5 LTS to 6.2 LTS

Clean Up Installation• Remove local, uninstalled Extensions

Page 18: Update typo3 4.5 LTS to 6.2 LTS
Page 19: Update typo3 4.5 LTS to 6.2 LTS

Remove installed, unused Extensions

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

Page 20: Update typo3 4.5 LTS to 6.2 LTS

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

Page 21: Update typo3 4.5 LTS to 6.2 LTS

Obsolete Extensions

• May work in 6.2, but logfiles can’t be created anymore

Page 22: Update typo3 4.5 LTS to 6.2 LTS

Clean Up Installation

!

• Run Database Analyzer in Install Tool

• Update Required Tables

• Remove unused tables

Page 23: Update typo3 4.5 LTS to 6.2 LTS

Remove unused Tables

Page 24: Update typo3 4.5 LTS to 6.2 LTS

Shrink Database

• Decrease table size:

• cache_ …

• cachingframework_ …

• cf_ …

• sys_log, sys_stat, …

• tx_realurl_errorlog, …

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

Page 25: Update typo3 4.5 LTS to 6.2 LTS

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

Page 26: Update typo3 4.5 LTS to 6.2 LTS

Update Extensions for 4.5

Page 27: Update typo3 4.5 LTS to 6.2 LTS

Extension Versions (4.5)

Page 28: Update typo3 4.5 LTS to 6.2 LTS

Warning during Upgrade TYPO3 Version

Page 29: Update typo3 4.5 LTS to 6.2 LTS

Warning during Upgrade PHP Version

Page 30: Update typo3 4.5 LTS to 6.2 LTS

Some Extensions have update scripts

Page 31: Update typo3 4.5 LTS to 6.2 LTS

Deprecation Log

Page 32: Update typo3 4.5 LTS to 6.2 LTS

Namespacingtypo3/sysext/core/Migrations/Code

for IDE:

Page 33: Update typo3 4.5 LTS to 6.2 LTS

Check PHP Version

• TYPO3 4.5, 4.6 work with PHP 5.2-5.5

• TYPO3 4.7 and higher require PHP 5.3-5.5

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

Page 34: Update typo3 4.5 LTS to 6.2 LTS

Enable Error Display

Page 35: Update typo3 4.5 LTS to 6.2 LTS

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 36: Update typo3 4.5 LTS to 6.2 LTS

Reference 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 37: Update typo3 4.5 LTS to 6.2 LTS

Reference Index

Page 38: Update typo3 4.5 LTS to 6.2 LTS

Smooth Migration

• Make sure that extensions extbase and fluid are installed

• Install extension smoothmigration

• Create BE user _cli_smoothmigration

• Reload Backend

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

Page 39: Update typo3 4.5 LTS to 6.2 LTS

Smooth Migration

Page 40: Update typo3 4.5 LTS to 6.2 LTS

Overview

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 41: Update typo3 4.5 LTS to 6.2 LTS

Database 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 42: Update typo3 4.5 LTS to 6.2 LTS

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 43: Update typo3 4.5 LTS to 6.2 LTS

require_once

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

Page 44: Update typo3 4.5 LTS to 6.2 LTS

Change Symlink

• Change to new TYPO3 version:typo3_src -> typo3_src-6.2.x

• Update index.php in DOC_ROOT

Updating index.php only necessary if not symlinked !

Page 45: Update typo3 4.5 LTS to 6.2 LTS

Go to Install Tool

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 46: Update typo3 4.5 LTS to 6.2 LTS
Page 47: Update typo3 4.5 LTS to 6.2 LTS
Page 48: Update typo3 4.5 LTS to 6.2 LTS
Page 49: Update typo3 4.5 LTS to 6.2 LTS

After Uninstalling

Page 50: Update typo3 4.5 LTS to 6.2 LTS

Upgrade Wizard

Page 51: Update typo3 4.5 LTS to 6.2 LTS

Check Database

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

Page 52: Update typo3 4.5 LTS to 6.2 LTS

Clear Cache

Page 53: Update typo3 4.5 LTS to 6.2 LTS

Admin User TSconfig

• options.clearCache.system = 1

Page 54: Update typo3 4.5 LTS to 6.2 LTS

Update Extensions

Page 55: Update typo3 4.5 LTS to 6.2 LTS
Page 56: Update typo3 4.5 LTS to 6.2 LTS

Version not supported?

ext_emconf.php

Page 57: Update typo3 4.5 LTS to 6.2 LTS

Ext not in TER? Try GIT!

• git.typo3.org

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

Page 58: Update typo3 4.5 LTS to 6.2 LTS

Extensions from 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 59: Update typo3 4.5 LTS to 6.2 LTS

Changes in TypoScript

file.treatIdAsReference = 1

Page 60: Update typo3 4.5 LTS to 6.2 LTS

DAM to FAL Migration

• First, let’s see how files are handled

Page 61: Update typo3 4.5 LTS to 6.2 LTS

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 62: Update typo3 4.5 LTS to 6.2 LTS

TYPO3 6.x - FAL

local file

fileadmin/user_uploaddirect upload

upload through element browser RTE upload

fileadmin/_processed_

BROWSER

rendered images

fileadmin/….

Page 63: Update typo3 4.5 LTS to 6.2 LTS

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 64: Update typo3 4.5 LTS to 6.2 LTS

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 65: Update typo3 4.5 LTS to 6.2 LTS

add’l data

DAM to FAL Migrationtx_dam

tx_dam_categories

sys_file

sys_category

sys_file_metadata

ext:filemetadata

some information may be lost (e.g. copyright)

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

Page 66: Update typo3 4.5 LTS to 6.2 LTS

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 67: Update typo3 4.5 LTS to 6.2 LTS

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 68: Update typo3 4.5 LTS to 6.2 LTS

Update Language Packs

Page 69: Update typo3 4.5 LTS to 6.2 LTS

Changes in Extbase

• New Property Mapper

• Recursive Validation

Page 70: Update typo3 4.5 LTS to 6.2 LTS

Scheduler Tasks

• It may be necessary to re-create scheduler tasks

Page 71: Update typo3 4.5 LTS to 6.2 LTS

Questions ?

Page 72: Update typo3 4.5 LTS to 6.2 LTS

Download Slides

• http://jweiland.net/t3dd14

Page 73: Update typo3 4.5 LTS to 6.2 LTS

Let us be your host