Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on domain.tld (multilanguage) #18

Open
h3nn3s opened this issue Jan 17, 2023 · 2 comments
Open

Exception on domain.tld (multilanguage) #18

h3nn3s opened this issue Jan 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@h3nn3s
Copy link

h3nn3s commented Jan 17, 2023

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 mbrodala added the bug Something isn't working label Jan 19, 2023
@mbrodala
Copy link
Member

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

@h3nn3s
Copy link
Author

h3nn3s commented Jan 23, 2023

exception-18.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants