Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedir/d3cecf0320b0253e78c3cb78e9641cb8 to your computer and use it in GitHub Desktop.
Save fedir/d3cecf0320b0253e78c3cb78e9641cb8 to your computer and use it in GitHub Desktop.
TYPO3camp Nantes TYPO3 CMS 6 to 9 Update Notes

Notes of Matthias Krappitz for the TYPO3 CMS 6 to 9 update session of the installation https://www.kastrati.com/ on the Sunday of the TYPO3Camp Nantes 2018. Makes only sense for participants of the session

From 6 to 7

  • set development system DB settings inf AdditionalConfiguration.php on domain condition

  • execute DB Compare

  • set Preview Domain in PageTs on domain condition

  • set TS Domain Conditions for Frontend to Dev Environment

  • extension updates (EXT:powermail only up to 2.25.3 for now)

  • EXT: fix realurl configuration, changing $TYPO3_CONF_VARS to $GLOBALS['TYPO3_CONF_VARS']

  • migrate to EXT:metaseo, rewrite data, change static TS, change constants

  • set php to 7.1

  • TYPO3 Core Update to 7.6

  • run extension updates

  • remove EXT:flux grid viewhelper

  • update translations

  • uninstall EXT:css_styled_content, install EXT:fluid_styled_content, run upgrade wizard, change static TS, adjust CSS

  • either mysql: UPDATE tt_content SET header_layout = 1 WHERE header_layout = 0; or set default header type to h1 via TS

  • set Language ISO codes in sys_language records

  • update EXT:powermail to 3.22.1, run upgrade wizard, empty autoload cache, do css adjustments:

    .powermail_label {width: 200px; display: inline-block; float: left; }
    .powermail_legend {color: # e7a539; font-weight: bold; margin: 20px 0 5px; }
    .powermail_input, .powermail_field {width: 280px; padding: 3px 5px; float: left; }
    .powermail_fieldwrap_textarea,
    .powermail_fieldwrap_input {margin-bottom: 5px; }
    .powermail_fieldwrap {position: relative; clear: both; }
    

From 7 to 8

  • TYPO3 Core update to 8.7

  • Make DB adjustments in AdditionalConfiguration.php because of changed syntax

  • clear all caches

  • do extension updates

  • update translations

  • In EXT: castratielements, remove dependency on EXT:fluidcontent, create ext_localconf.php with

    if (!defined('TYPO3_MODE')) {
            the ('Access denied.');
    }
    // fix for https://github.com/FluidTYPO3/flux/issues/1442 in flux 8
    if (TYPO3_MODE == 'FE') {
            $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSources'][] = \FluidTYPO3\Flux\Backend\TableConfigurationPostProcessor::class.'->processData';
    }
    \FluidTYPO3\Flux\Core::registerTemplateAsContentType('AEMKA.Kastratielements', 'EXT: kastratielements/Resources/Private/Templates/Content/Container3cols.html');
    \FluidTYPO3\Flux\Core::registerTemplateAsContentType('AEMKA.Kastratielements', 'EXT: kastratielements/Resources/Private/Templates/Content/Example.html');
    

and remove

  \FluidTYPO3\Flux\Core::registerProviderExtensionKey('castratielements', 'Content');
  • remove EXT:fluidcontent, reinstall EXT:kastratielements that was uninstalled for no reason

  • Optional: Copy icon and put elements in <flux:form.option.icon value="EXT: castratielements/Resources/Public/Icons/Content/Example.svg" />

  • Convert CTypes per

    UPDATE tt_content SET CType = "flux_container3cols" WHERE tx_fed_fcefile = "kastratielements:Container3cols.html";
    UPDATE tt_content SET CType = "flux_example" WHERE tx_fed_fcefile = "kastratielements:Example.html";
    
  • rename lib.contentElement to lib.renderContentElement

  • install EXT:rte_ckeditor

  • remove old RTE Page TsConfig

  • update to EXT:flux 9

  • Include colPos in container element columns

  • Migration of the child elements of the container with

    UPDATE `tt_content` SET colPos = CONCAT (tx_flux_parent, "10") WHERE tx_flux_column="content.left";
    UPDATE `tt_content` SET colPos = CONCAT (tx_flux_parent, "11") WHERE tx_flux_column="content.middle";
    UPDATE `tt_content` SET colPos = CONCAT (tx_flux_parent, "12") WHERE tx_flux_column="content.right";
    
  • Optional: Reset icon and group name in the Flux elements

  • Introduce flux.input.file xclass

  • Re-implement CTypes per

    UPDATE tt_content SET CType = "kastratielements_container3cols" WHERE tx_fed_fcefile = "kastratielements:Container3cols.html";
    UPDATE tt_content SET CType = "kastratielements_example" WHERE tx_fed_fcefile = "kastratielements:Example.html";
    
  • Remove the render fix of flux 8 from ext_localconf.php

    // fix for https://github.com/FluidTYPO3/flux/issues/1442 in flux 8
    if (TYPO3_MODE == 'FE') {
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSources'][] = \FluidTYPO3\Flux\Backend\TableConfigurationPostProcessor::class.'->processData';
    }
    
  • update to php 7.2

  • introduce default .htaccess from 8 core for better Google Pagespeed

  • Fix SSL Force redirection via .htaccess:

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
    
  • edit editor rights for new tca fields

  • execute DB Compare

  • remove EXT:realurl, EXT:metaseo, update EXT:powermail

From 8 to 9

  • update TYPO3 CMS to 9.5
  • remove dependencies from EXT:kastratielements except for EXT:flux
  • install EXT:seo
  • create Site conf, set static routes for sitemap.xml and robots.txt

Questions? Interested in a TYPO3 update? Get in touch!

info@aemka.de https://www.aemka.de/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment