#107129xlf files breaks module "Maintenance -> Manage Language Packs"
Description
I’m not quite sure how to describe this – here’s an attempt (with minimal example extension):
In the folder “my_ext/Resources/Private/Language/” are usually the XLF files for the static translations, so far so good, TYPO3 also finds them and they are used by TYPO3 without any problems.
If I now go to the Install Tool \-> Maintenance \-> Manage Language Packs in the BE, press the “Manage Language Packs” button <- nothing happens. Browser console spits out an invalid JSON error.
It doesn’t matter whether the “Language” folder contains a completely empty XLF or a filled XLF or even a 1-to-1 copy&paste XLF from the EXT:news … so as soon as there is anything in the “Language” folder (and only for this one extension – the Install-Tool -> “Manage Langauge Packs” module collapses.
The extension looks like this at the moment (really!):
NOT WORKING:
my_ext/composer.json
my_ext/ext_emconf.php
my_ext/Resources/Private/Language/ (here xlf files)
WORKING (deleted XLF-files):
my_ext/composer.json
my_ext/ext_emconf.php
my_ext/Resources/Private/Language/
Additional info:
Unfortunately, I can’t do much with the JSON error, as soon as I copy it out of the browser development tools and validate it with some tool, the JSON seems to be fine.
Tested in different TYPO3 13 versions incl. a completely new one without any third-party extensions. All “symlinked” / none-composer.
Background:
I only noticed this after a TYPO3 update from 11 – 13, with a single actually very very small extension, but I’m probably too stupid to find the difference to other extensions, which causes this problem.
Error Message:
Uncaught (in promise) SyntaxError: Unexpected token ‘’, “{“success”… is not valid JSON
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.