Project

General

Profile

Actions

Bug #89442

closed

[BREAKING] Error "Column 'sys_language_uid' in where clause is ambiguous" when trying to translate CEs as non-admin user

Added by Oliver joppnet over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-10-17
Due date:
% Done:

100%

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

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?


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #89140: Page module: Translation wizard should respect available languages via configured SiteClosedBenni Mack2019-09-11

Actions
Related to TYPO3 Core - Bug #89486: Translation as non-admin user fails after first translation-wizard processClosed2019-10-23

Actions
Actions

Also available in: Atom PDF