Bug #89442
closed[BREAKING] Error "Column 'sys_language_uid' in where clause is ambiguous" when trying to translate CEs as non-admin user
100%
Description
Hi,
it seems like the recently released version 9.5.10 introduced a breaking issue that prevents non-admin users from translating content elements from the default language to another language.
On step 2 of 4 of the Translation Wizard Modal (which is supposed to list the content elements to select for translating) the ajax call exits with an "Internal Server Error" stating the following:
An exception occurred while executing 'SELECT `tt_content_orig`.`sys_language_uid` FROM `tt_content` INNER JOIN `tt_content` `tt_content_orig` ON `tt_content`.`l10n_source` = `tt_content_orig`.`uid` WHERE (`tt_content`.`pid` = ?) AND (`tt_content`.`sys_language_uid` = ?) AND (`sys_language_uid` IN (?, ?, ?, ?, ?, ?)) AND (((`tt_content`.`deleted` = 0) AND (`tt_content_orig`.`deleted` = 0)) AND (((`tt_content`.`t3ver_wsid` = 0) OR (`tt_content`.`t3ver_state` <= 0)) AND ((`tt_content_orig`.`t3ver_wsid` = 0) OR (`tt_content_orig`.`t3ver_state` <= 0)))) GROUP BY `tt_content_orig`.`sys_language_uid`' with params [967, 3, -1, 0, 1, 2, 3, 4]: Column 'sys_language_uid' in where clause is ambiguous
Seems like the query part (`sys_language_uid` IN (?, ?, ?, ?, ?, ?))
is causing the issue as it's missing the table statement such as (`tt_content`.`sys_language_uid` IN (?, ?, ?, ?, ?, ?))
(`tt_content_orig`.`sys_language_uid` IN (?, ?, ?, ?, ?, ?))
.
Going back to 9.5.9 "fixes" the issue.
Anyone else having this issue?
Updated by Oliver joppnet over 4 years ago
- Subject changed from Error "Column 'sys_language_uid' in where clause is ambiguous" when trying to translate CEs as non-admin user to [BREAKING] Error "Column 'sys_language_uid' in where clause is ambiguous" when trying to translate CEs as non-admin user
Updated by Daniel Goerz over 4 years ago
- Priority changed from Should have to Must have
- Is Regression set to Yes
Updated by Daniel Goerz over 4 years ago
- Related to Bug #89140: Page module: Translation wizard should respect available languages via configured Site added
Updated by Daniel Goerz over 4 years ago
- Status changed from New to Accepted
Hi Oliver,
thanks for reporting. I could reproduce the error in master and the latest 9.5 release.
Updated by Gerrit Code Review over 4 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62013
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62013
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61983
Updated by Anonymous over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a09d55cae7077a1365c6c1e5b16fe136031f7a1a.
Updated by Christian Eßl about 4 years ago
- Related to Bug #89486: Translation as non-admin user fails after first translation-wizard process added