Bug #82858
closedMetadata edit button leads to 'Uncaught Exception' inside Text and Images content element
0%
Description
The workaround is in a multilingual website. Place a 'Text and Images' content element in default language column.
Translate the contents and page using normal localization/translation wizard. While editing the above-mentioned content element in its corresponding translation, move to the tab 'Images'.
On clicking the button for editing metadata, a uncaught exception message kicks in. Seems like a sys_file_metadata record for the respective language and file isn't generated in the sys_file_metadata table. But can't see the need of a button to edit metadata, while metadata can be edited inline.
Please see the screenshots attached.
Files
Updated by Fedir RYKHTIK almost 7 years ago
Hey Anu !
As I could understand, the problem appears only on multilanguage sites ?
On TYPO3 9 master, on basic installation the button is working.
Best regards,
Fedir
Updated by Patrick Broens over 6 years ago
In sys_file_reference there are two ways to edit the title, alternative text and description:
- In the sys_file_reference itself, so it is only for this reference
- Clicking the pencil, so you can edit sys_file_metadata, for all references
The error appears when clicking the pencil (to edit sys_file_metadata) in a translated sys_file_reference which does not have a corresponding translated sys_file_metadata. When the sys_file_metadata is translated in the Filelist module, everything is fine and clicking on the button in a translated sys_file_reference is not showing the error anymore.
Or the pencil button to edit the sys_file_metadata should not be in a translated reference if the corresponding translated metadata does not exist, or clicking the pencil should generate the translated metadata if not available.
Updated by Riccardo De Contardi over 6 years ago
- Related to Bug #82294: "$uid must be positive integer, 0 given" if setting content image in metadata to language "all" added
Updated by Riccardo De Contardi over 6 years ago
- Status changed from New to Needs Feedback
Hi, Do you think that this could be a possible duplicate of this issue? #82294
Can you add a step-by-step guide on how to reproduce your issue with 8.7.12 or the latest master? I currently find the edit metadata pencil button only in the default language :S
thank you!
Updated by Riccardo De Contardi over 6 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
next-patchlevel)
Should have been solved with https://review.typo3.org/#/c/54888/ on version 8 and above.
I close this one for now; please reopen it if you think that this is the wrong decision or experience the issue again and have further information about how to reproduce the issue.
Thank you!
p.s. thanks to Simon Gilli for the hint.