Bug #85159
closed
Trying to edit record with image that has localised metadata fails with exception
Added by Dmitry no-lastname-given over 6 years ago.
Updated over 5 years ago.
Description
If you try to edit CTE "Text & Images" that has relation to image, that has localised metadata - it fails with exception -
Uncaught TYPO3 Exception
An exception occurred while executing 'SELECT `uid`, `sys_language_uid` FROM `sys_file_metadata` WHERE (`uid` IN (?, ?)) AND (`sys_language_uid` IN (?, ?)) GROUP BY `sys_language_uid`' with params ["41", "3", "0", 0]: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'website.sys_file_metadata.uid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by.
Trace attached.
Files
TYPO3 Version 8.7.15
Webserver nginx/1.12.2
PHP Version 7.0.25
Database (Default) MySQL 5.7.20
Application Context Development
Composer mode Enabled
Operating System Linux 3.10.0-514.26.2.el7.x86_64
- Project changed from 9 to TYPO3 Core
- TYPO3 Version set to 8
- Category set to Localization
also in master
app/web/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInputPlaceholders.php:241
$queryBuilder->select('uid', $languageField)
...
->groupBy($languageField)
- Tags set to exception_handling
Have somebody a solution for this problem?
I have the same message..
Gianluigi Martino wrote:
Have somebody a solution for this problem?
The solution would be to add uid
to the list of GROUP BY
fields.
I have the same message..
Same here, I just stumbled upon this and will try to push a fix within the next days.
- Status changed from New to In Progress
- Assignee set to Mathias Brodala
- Status changed from In Progress to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF