Issue Bug Closed

#103871Exception no. 1476107295 if no languageId can be found.

Franz Holzinger 05/21/24, 15:11 updated 05/29/24, 20:58

Description

Routing Service.

After a small change in the sites.yaml file, the whole site is gone with this exception.

PHP Warning: Trying to access array offset on null in /path/typo3_src-12.4.15/typo3/sysext/core/Classes/Site/Entity/Site.php line 110

foreach ($configuration['languages'] as $languageConfiguration) {
    $languageUid = (int)$languageConfiguration['languageId'];

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 2

History 6

  1. Andreas Kienast commented and changed status New Needs Feedback 05/22/24, 05:38

    What exactly did you change in your configuration?

  2. Franz Holzinger commented and changed attached config-kurz.yaml 05/22/24, 10:47

    Here is the shortened config.yaml file.

    Line 62-62:

        languageId: 3
    routeEnhancers:

    Then I tried this:

        languageId: 3
      -
    routeEnhancers:

    Then the website has gone. It did not help to undo this change.

  3. Andreas Kienast commented 05/22/24, 11:07

    Your attempted change results in invalid yaml. Did you clear all caches (var/cache/) after un-doing the change?

  4. Franz Holzinger commented 05/22/24, 11:26

    After this change it has not been possible to do anything. All the TYPO3 backend has gone because of this PHP error message.

  5. Andreas Kienast commented 05/22/24, 11:30

    Yes, please delete the cache manually from your filesystem.

  6. Georg Ringer commented and changed status Needs Feedback Closed 05/29/24, 20:58

    I am closing this issue as it can be solved easily