Bug #85159
closedTrying to edit record with image that has localised metadata fails with exception
100%
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
Updated by Dmitry no-lastname-given over 6 years ago
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
Updated by Michael Stucki over 6 years ago
- Project changed from 9 to TYPO3 Core
- TYPO3 Version set to 8
Wrong project.
Updated by Georg Ringer over 6 years ago
also in masterapp/web/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInputPlaceholders.php:241
$queryBuilder->select('uid', $languageField) ... ->groupBy($languageField)
Updated by Gianluigi Martino about 6 years ago
Have somebody a solution for this problem?
I have the same message..
Updated by Mathias Brodala about 6 years ago
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.
Updated by Mathias Brodala about 6 years ago
- Status changed from New to In Progress
- Assignee set to Mathias Brodala
Updated by Gerrit Code Review about 6 years ago
- Status changed from In Progress 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/58813
Updated by Gerrit Code Review about 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58826
Updated by Mathias Brodala about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1b4ff6428422b2359b3b2820033c9d9b698307d1.