TYPO3

Planning a multi-site TYPO3 upgrade to v14 hop by hop

6 min read

One hop at a time

Hi guys,

A big part of my work at jweiland.net is upgrading TYPO3 installations that carry many sites in one page tree: one core, one database, one composer.json, and many websites with their own editors. With such a setup you cannot “just jump” from v11 to v14 on a Friday afternoon. Every hop touches every site at once.

This post is the planning part. No magic, just the order in which I collect facts and the documents that come out of it. The goal is a plan that a colleague can read and a runbook that somebody can execute at night without calling me.

Why hop by hop at all?

Each major version ships upgrade wizards and database migrations for the changes of that version. Some of those wizards are removed again in a later major, because the core expects the data to be migrated by then. If you skip a version, you risk skipping its migrations. For a tiny site there is another way: a fresh installation plus a content import. That is what I did for my own one-page site hoja.in (7.6 to 14.3, 19 pages, ten content elements). For an installation with years of records, file references, redirects, workspaces and editor permissions, an import is the riskier path, so we go 11.5 → 12.4 → 13.4 → 14.3, one LTS at a time.

Step 1: Inventory, before any opinion

I write down facts first, all of them taken from the system and not from memory:

  • the installed core and the declared constraint (composer show typo3/cms-core and the line in composer.json), and whether it is Composer or classic mode
  • PHP version on every environment, database server and version
  • every site: vendor/bin/typo3 site:list, plus the languages and base URLs from config/sites/*/config.yaml
  • every extension with its source: core, Packagist, own code in the repository, or a copy in some old folder that nobody remembers
  • which extensions are really used. A plugin that sits on no page in any site is a candidate to drop instead of upgrade.

The last point saves the most time. A quick query per plugin answers it:

SELECT pid, uid, CType, list_type
FROM tt_content
WHERE deleted = 0
  AND (CType LIKE 'news_%' OR list_type LIKE 'news_%');

Since v13 plugins are moving to their own CTypes; before that they hide in list_type, so I check both.

Step 2: The hop list with PHP and database per hop

For each hop I note which PHP version both ends support, because the environment change is a separate step from the code change. If v11.5 and v12.4 both run on PHP 8.1, I first move the old site to PHP 8.1, deploy, watch the logs, and only then start the core hop. Same for the database server. The v14 core itself requires PHP 8.2 or newer ("php": "^8.2" in typo3/cms-core), and the project’s config.platform.php must match the oldest PHP of your servers, otherwise Composer happily installs packages that production cannot run.

A hop list for an installation on v11 then looks like this in the plan:

hop 0  environment: PHP 7.4 -> 8.1 on all environments (still TYPO3 11.5)
hop 1  11.5 -> 12.4   (PHP 8.1)
hop 2  environment: PHP 8.1 -> 8.2 or 8.3 (still 12.4)
hop 3  12.4 -> 13.4
hop 4  13.4 -> 14.3   (same PHP)

Check the exact supported PHP and database ranges per version on get.typo3.org for the patch level you plan to use; they move during the lifetime of an LTS.

Step 3: Find the blockers on Packagist

The core is rarely the problem. Third-party extensions are. For every extension from Packagist I want to know: is there a release that allows the target major? A small script against the public Packagist metadata answers that without touching the project:

#!/usr/bin/env bash
# Which releases of each package allow a given TYPO3 major? Usage: ./compat.sh 14 vendor/a vendor/b
major="$1"; shift
for pkg in "$@"; do
  hit="$(curl -s "https://repo.packagist.org/p2/${pkg}.json" 
    | jq -r --arg p "$pkg" '.packages[$p][]? | select(.require["typo3/cms-core"]? // "" | test("(^|[^0-9.])'"$major"'\.")) | .version' 
    | head -1)"
  printf '%-40s %sn' "$pkg" "${hit:-no release for v$major found}"
done
./compat.sh 14 georgringer/news in2code/powermail helhum/typo3-console

It prints the newest release that declares the target major in its typo3/cms-core requirement. When I ran it while writing this post, it found a v14-compatible release for news and typo3-console, and none for powermail. That matches what I saw on hoja.in, where I replaced powermail with the core form framework. Run it again on the day you plan; this changes every week.

Inside the project, Composer tells you the same from the other side. In a throwaway branch:

composer why-not typo3/cms-core 14.3.0

Every line in that output is a package to discuss. For each blocker there are four options, and the plan has to say which one: wait for a release, use a fork or an open pull request, replace it with core functionality, or drop it because nothing uses it. These are decisions for the project owner, not for me alone, so they go into a separate “decisions” table with a date.

Step 4: The order of work inside one hop

Within one hop I always use the same order. It keeps the diff readable and makes it obvious which step broke something:

  1. Environment (if not already done in a hop 0).
  2. One composer require call with all typo3/cms-* packages and all third-party packages at their new constraints, so Composer resolves everything at once. One commit.
  3. Own extensions: Rector and Fractor first, review the diff, then the manual changes from the changelog. One commit per extension.
  4. Configuration: system settings, site configuration, TypoScript, TSconfig, RTE presets, Fluid overrides of third-party templates (these break silently).
  5. Database: vendor/bin/typo3 extension:setup, then vendor/bin/typo3 upgrade:list and upgrade:run. Wizards are not “click all”: read what each one migrates.
  6. Gate: the smoke test against the baseline for URLs of every site, error log, backend checklist with an editor account.

With many sites, the smoke test list is where most plans are too thin. Take URLs from each site’s sitemap, then add per site the pages with forms and plugins by hand.

Step 5: The runbook

The runbook is written during the local hops, not after. Every command that I run locally goes in, in order, and the production run must be the same list. Mine always has the same skeleton:

# 1. Freeze: announce the window, lock the backend
vendor/bin/typo3 backend:lock
# 2. Back up: database dump + fileadmin archive, check the dump size
# 3. Deploy the new release (code incl. vendor/)
# 4. Database and caches
vendor/bin/typo3 extension:setup
vendor/bin/typo3 upgrade:run
vendor/bin/typo3 upgrade:list      # expect nothing left
vendor/bin/typo3 cache:flush
# 5. Verify: smoke compare against the capture taken before step 3
# 6. Unlock
vendor/bin/typo3 backend:unlock
# Rollback: previous release + restore the dump from step 2

Write the rollback before the first hop and decide up to which point it is still possible. After editors have worked on the new version for a day, restoring yesterday’s dump is not a rollback anymore, it is data loss.

Where AI helps and where it does not

I do this with Claude Code and a small set of skills and agents that I built for project upgrades. The agents are good at the boring sweep: scanning many TypoScript files for removed options, running the Packagist checks, keeping a ledger of every finding. A hook even blocks any command that writes the database when no fresh dump exists. The decisions in step 3 and the acceptance of the gate stay with humans. The plan is a document for people, the agent only helps to fill it with facts faster.

If you have a big installation in front of you, start with step 1 this week. It costs a day and saves the panic later. Cheers!

Further reading

Leave a comment

Your email address will not be published.