installationcomposer-phptypo3typo3-11.xtypo3-console

install introduction package in TYPO3 11 with composer


TYPO3 11 LTS with composer.

I tried:

composer require typo3/cms-introduction

the introduction package and bootstrap package are loaded.

Then I tried:

vendor/bin/typo3 extension:setup

but nothing happens. In the extensions manager i can see both extensions but no page in the page tree, nothing in the backend.

There are different descriptions out in the world:

composer exec typo3 extension:setup

results in this error message:

Script typo3 handling the __exec_command event returned with error code 255

It seems impossible to install the introduction package in TYPO3 11 with composer.


Solution

  • I use always

    vendor/bin/typo3cms install:setup
    vendor/bin/typo3cms install:extensionsetupifpossible
    

    and never had any problems, it requires this though:

    "helhum/typo3-console": "^7.0.2"
    

    I tested it with the introduction package too and the pages are created. The frontend is directly shown correctly after this.
    My setup was completely based on composer, so there is no general problem to install the introduction package by composer.

    If you want to repair the installation, keep care about the hint in the installation instruction:

    If you want to re-install ext:introduction on an instance that had ext:introduction loaded before, the data import is only performed if you (manually) remove the keys marked with extensionDataImport in column entry_namespace from database table sys_registry that are related to the introduction paths. Note it is often easier to just install TYPO3 from scratch if you just want to play around.

    TYPO3 and composer
    Documentation related to composer is included in several documents:

    Furthermore there is an online helper for composer that makes it easier to collect all the desired packages for commandline:
    https://get.typo3.org/misc/composer/helper
    Note that it's not always better to install more packages and that not every package is available for every TYPO3 version.

    typo3-console
    The manual for the typo3-console can be found here:
    https://docs.typo3.org/p/helhum/typo3-console/7.1/en-us/
    You can switch the version in the top left corner of the manual.
    The typo3-console can be used for non-composer installations too, it can be downloaded here:

    TYPO3 v12
    For TYPO3 v12 the typo3-console is not compatible yet (Oct. 7, 2022), so some steps in the install-process have to be done manually and are not available yet by command line.
    All composer commands can be used and are not concerned by the missing console. Just in composer.json files usually this block is used and has to be removed until typo3-console is compatibel to v12:

        "scripts":{
            "typo3-cms-scripts": [
                "typo3cms install:fixfolderstructure"
            ],
            "post-autoload-dump": [
                "@typo3-cms-scripts"
            ]
        },