Open jpmschuler opened 1 year ago
Ok, I don't get it by looking at it.
Thanks for the record lists already!
Could you maybe add the current state of sys_file_reference:29731 and sys_file_reference:29730 as well, and see if their 'pid' entries point to records that you list in the 'pages' table already, or eventually add them as well?
add the current state of sys_file_reference:29731 and sys_file_reference:29730 as well
Could you specify more what is missing, or was it not just not clear enough?
I thought the first table would do that and the SQL statements would make clear that only the pid is changed. I made that existing data more clear by explicitly using two table variants.
l10n_parent of sys_file_reference:29713 points to sys_file_reference:29731, and l10n_parent of sys_file_reference:29841 points to sys_file_reference:29730
I'm interested in the rows of sys_file_reference:29731 and sys_file_reference:29730
Or am I totally confused right now?
Oh my bad, how obvious. Updated. Will pinpoint the problem after lunch.
My current interpretation (also I am not 100% sure because wow is this complex).
The IMAGE-L1 (SFR record 29841 with sys_language_uid 1) has following details
So the first check moves IMAGE-L1 to that page.
That is a bad idea in this special case because these two CONTENT elements are not related.
Expected connections between tt_content translations and sys_file_relation translations is as follows:
Content-L0 ---- IMAGE-L0
III III
Content-L1 (--) IMAGE-L1
Current connection:
ContentA-L0 ---- IMAGE-L0 ContentB-L0
III III III
ContentA-L1 IMAGE-L1 ---- ContentB-L1
I can't even grasp why such a thing could happen.
So my question: Should I check what the BE/FE actually interprets here (e.g. What image is associated with ContentA-L1,ContentB-L0,ContentB-L1) and thus generate a rule of how to fix it to add to dbdoctor.
Or is this rather so broken that I fix that manually and pretend it never happened.
Ok. I guess we should fix this by looking at l10n_parent of tt_content, maybe.
However, pid of sys_file_reference records is not that important in the system. To resolve this loop for now, I'll exclude sys_file_reference in TcaTablesTranslatedLanguageParentDifferentPid. This will fix your issue, but will not fix the underlying problem which needs more analysis. I'll thus merge this quick-fix, but will leave this issue open to have a closer look together with a proper fix on this later again.
Mitigation released with 0.5.0
I have an 11LTS which started in v3.6, so should be a good test case.
I did 3 instances of
And after a lot of changes in the first run, each run now is green except for two steps:
and later
I didn't quite get why this is the case, just started with dumping the relevant data, but couldn't grasp it yet. Will circle back as soon as times come up, because I'd like to run this command regularly as a health check.