pagemachine / typo3-opcache-control

PHP Opcache management for TYPO3
GNU General Public License v3.0
5 stars 2 forks source link

Exception on domain.tld (multilanguage) #18

Open h3nn3s opened 1 year ago

h3nn3s commented 1 year ago

Hi, in our installation there pops up an exception. The following exception is thrown, when we call https://www.domain.tld or https://www.domain.tld/. Everything is fine, when we directly open any language specific path like https://www.domain.tld/de

TYPO3\CMS\Core\Routing\PageSlugCandidateProvider::getCandidatesForPath(): Argument #2 ($language) must be of type TYPO3\CMS\Core\Site\Entity\SiteLanguage, null given, called in /var/www/html/html/typo3/sysext/core/Classes/Routing/PageRouter.php on line 152

Our SiteConfiguration burned down to the relevant parts are this:

base: 'https://www.domain.tld'
languages:
  -
    title: Deutsch
    base: /de/
  -
    title: Englisch
    base: /en/
....

As you see, all base s are set. I think the missing point here is the fact, that there is no configuration simply for the pure domain without any subparts.

When the german base is set to / for testing everything works fine on root domain.

mbrodala commented 1 year ago

I kind of get the issue, can you upload a full, sanitized, exception trace nevertheless?

h3nn3s commented 1 year ago

exception-18.txt