Bug #104252
openSubpages of mountpoint generate 404's in all languages but languageId 0
0%
Description
When creating a mountpoint in a site with two languages, Dutch (languageId 0) and English (languageId 1), the mountpoint and it's subpages are available in the frontend for languageId 0. However, for languageId 1, only the toplevel page is available. Every subpage generates 404's, although the urls look ok.
So, these work: /2023-2024/algemeen/ /2023-2024/algemeen/inleiding/ etc...
This one also: /en/2023-2024/general/
But this one, and all others, not: /en/2023-2024/general/introduction/
Files
Updated by Garvin Hicking 5 months ago
- Status changed from New to Needs Feedback
This might be a specific site config configuration issue, or from your base typoscript.
Can you try to setup up a minimal example to reproduce this with a site config plus base typoscript and put that here? Then we can try to help.
Updated by Albert van der Veen 5 months ago
You will probably get the same error if you create a mountpoint in a multi language site of your own: I tried it in several different sites, all with different site config and Typoscript. Or would you like to have a backend login to one of my sites, so you can check the site config and Typoscript being used?
Updated by Garvin Hicking 5 months ago
Thanks for getting back.
Personally I am not using mointpoints very often,
so to debug it it would be better to have it reproducible in "my" development install.
Maybe you could bundle a SQL dump and the involved config/sitepackage as a minimal example? That would make it much quicker for me to look at (and maybe others)
Updated by Albert van der Veen 4 months ago
- File theballandi.zip theballandi.zip added
No problem, attached you'll find a zip-file containing a db dump and a home dir. You have to adjust the db-settings in file html/local/config/server-environment.php and the config/sites/site_theballandi/config.yaml and run composer install in the home dir, followed by ./local-deploy.sh, also from the home dir.
The site has no language menu, so you'll have to check the following url's directly in a browser:
en/mount/test - will give a 404
mount/test - is ok and gives 'Test'
Updated by Garvin Hicking 4 months ago
Great! I'll have a look the next days and see what I can find out!
Updated by Garvin Hicking 4 months ago
(I haven't forgotten this, but due to project work couldn't get to it yet. Bear with me :)
Updated by Garvin Hicking 4 months ago
Was able to spin the dev instance up, however the SQL dump is missing data for "pages" and "tt_content" and thus no active mounts - could you maybe also give some dummy data for that for me to further reproduce it? Sorry for the hassle :)
Updated by Garvin Hicking 4 months ago
Ping - do you maybe have that pages&tt-content dump for the relevant content?
Updated by Albert van der Veen 3 months ago
- File home.zip home.zip added
- File ahk.sql.zip ahk.sql.zip added
- File Schermafbeelding 2024-08-20 om 17.35.08.png Schermafbeelding 2024-08-20 om 17.35.08.png added
Hi Garving, sorry for the delay, have been away. Here are a new zip of a site structure and sql dump. You can try whether the sql dump works with the site you already have, but probably better to start with the new structure, as it's a different site.
If you go to en/home, the second link to 'feedback', which is a mountpoint, will give a 'page not found'.
If you go to home, the second link to 'feedback' will give 'feedback'.
The problem seems to be which option you choose in the mountpoint settings of the page - see screenshot. If you choose 'Show the mounted page', the EN page gives a 404.