Project

General

Profile

Actions

Bug #104252

open

Subpages of mountpoint generate 404's in all languages but languageId 0

Added by Albert van der Veen 5 months ago. Updated 3 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
Start date:
2024-06-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
mountpoint,translation,subpages
Complexity:
Is Regression:
Sprint Focus:

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

theballandi.zip (4.46 MB) theballandi.zip Albert van der Veen, 2024-07-09 15:56
home.zip (4.34 MB) home.zip Albert van der Veen, 2024-08-20 15:36
ahk.sql.zip (5.09 MB) ahk.sql.zip Albert van der Veen, 2024-08-20 15:37
Scherm­afbeelding 2024-08-20 om 17.35.08.png (25.2 KB) Scherm­afbeelding 2024-08-20 om 17.35.08.png Albert van der Veen, 2024-08-20 15:37
Actions #1

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.

Actions #2

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?

Actions #3

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)

Actions #4

Updated by Albert van der Veen 4 months ago

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'

Actions #5

Updated by Garvin Hicking 4 months ago

Great! I'll have a look the next days and see what I can find out!

Actions #6

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 :)

Actions #7

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 :)

Actions #8

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

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.

Actions

Also available in: Atom PDF