Issue Bug Closed

#107995optionalDependencies in "imbricated" Site set cause php warning

Sebastien Convers 11/06/25, 11:18 updated 03/31/26, 09:00

Description

I bumbed into this issue by trying to do the following

# Configuration/Sets/Base/config.yaml
name: vendor/base
label: Site package Base

# Configuration/Sets/News/config.yaml
name: vendor/news
label: News configuration
dependencies:
  - georgringer/news

If EXT:news is not installed, i can select vendor/base, and vendor/news is disabled
If EXT:news is installed, i can select vendor/base and vendor/news
==> All good

Now i want to add a “Full package Site Set” that should load “vendor/base”, and “vendor/news” if EXT:news is installed
My guess would be to do this:

# Configuration/Sets/Full/config.yaml
name: vendor/full
label: Site package Full
dependencies:
  - vendor/base
optionalDependencies:
  - vendor/news

But then i got this error

PHP Warning: Undefined array key “vendor/news” in /var/www/html/vendor/typo3/cms-core/Classes/Service/DependencyOrderingService.php line 247

Thanks :)

Reviews 2

History 212

  1. Gerrit Code Review pushed patch set 1 for main to change 91434 status New Under Review 11/06/25, 14:06

  2. Gerrit Code Review pushed patch set 2 for main to change 91434 11/06/25, 14:11

  3. Gerrit Code Review pushed patch set 3 for main to change 91434 11/06/25, 14:13

  4. Gerrit Code Review pushed patch set 4 for main to change 91434 11/06/25, 14:18

  5. Gerrit Code Review pushed patch set 5 for main to change 91434 11/06/25, 14:27

  6. Gerrit Code Review pushed patch set 6 for main to change 91434 11/06/25, 18:52

  7. Gerrit Code Review pushed patch set 7 for main to change 91434 11/18/25, 08:23

  8. Gerrit Code Review pushed patch set 8 for main to change 91434 11/18/25, 08:24

  9. Gerrit Code Review pushed patch set 9 for main to change 91434 12/12/25, 13:02

  10. Gerrit Code Review pushed patch set 1 for 13.4 to change 92117 12/12/25, 13:22

  11. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 12/12/25, 13:35

    Applied in changeset commit:ad3185bd9e819364d6d312bde74e891ed3bcabf1.

  12. Benni Mack changed status Resolved Closed 03/31/26, 09:00