Project

General

Profile

Actions

Bug #92827

closed

Translating IRRE in Free mode not possible

Added by Riny van Tiggelen over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2020-11-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Setup:
- 9.5 installation with 2 sites
- Both sites have 2 languages: Dutch with language-id 0 and English with language-id 1
- English has fallbackType: free

Trying to:
- Translate a page and its content elements to English

Problem:
- There's a content element on the page which has IRRE relations, these are not being translated or copied correctly

For translating content, there are 2 options: Translate or Copy, the outcome of these options:
- Translate: content elements get translated, but the IRRE relation does not. This results in a weird view where the element gets displayed twice: once as the original element and once as an element that can be translated
- Copy: content elements get translated, but the IRRE relation does not. This results in the same related element being used for both languages (which of course means that editing the relation in English also affects the Dutch language).

See screenshots:
1. This is the situation in the Dutch language, relation has uid=33
2. This is the situation in the English language when using "Translate", both relations have uid=33
3. This is the situation in the English language when using "Copy", relation has uid=33

I'm not able to pin down where the problem could be, tried to analyze the actions within the DataHandler and TcaInline but no result.


Files

IRRE-dutch.png (17.8 KB) IRRE-dutch.png Riny van Tiggelen, 2020-11-12 12:32
IRRE-english-copy.png (19.6 KB) IRRE-english-copy.png Riny van Tiggelen, 2020-11-12 12:32
IRRE-english-translate.png (31.1 KB) IRRE-english-translate.png Riny van Tiggelen, 2020-11-12 12:32
Actions #1

Updated by Riny van Tiggelen over 3 years ago

Extra information:
If I try to use the action "Localize all records" I get a 500 error, this shows up in the logs:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: An exception occurred while executing 'INSERT INTO `tt_content_calltoaction_mm` (`uid_local`, `uid_foreign`, `sorting`) VALUES (?, ?, ?)' with params [null, 34, 1]: Column 'uid_local' cannot be null | Doctrine\DBAL\Exception\NotNullConstraintViolationException thrown in file /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php in line 103. Requested URL: https://*****/typo3/index.php?route=%%2Fajax%%2Frecord%%2Finline%%2Fsynchronizelocalize&token=--AnonymizedToken--
Actions #2

Updated by Riccardo De Contardi about 3 years ago

  • Category set to Localization
Actions #3

Updated by Jo Hasenau almost 3 years ago

  • Status changed from New to Needs Feedback

Sounds like a misconfigured TCA for that particular IRRE field to me - never had those problems with IRRE and translations within our own projects.
So could you provide the TCA code here please?

Actions #4

Updated by Christian Kuhn about 2 years ago

  • Status changed from Needs Feedback to Closed

hey riny. i hope it's ok to close here for now: this indeed smells a bit like a funny TCA config, may i ask to recheck your settings? in case this turns out to still be a core issue, please create a fresh issue including the involved tca.

Actions

Also available in: Atom PDF