Bug #89342
closedInvalidArgumentException while parsing Services.yaml
0%
Description
After installing current master i get the following exception
(1/2) Symfony\Component\DependencyInjection\Exception\InvalidArgumentException The file "/home/www/dev10/www/public/typo3/sysext/core/Configuration//Services.yaml" does not contain valid YAML: Unexpected characters near " # Core caches, cache.core and cache.assets are injected as early # entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here" at line 40 (near "# entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here").
This is caused if both lines are present
- Core caches, cache.core and cache.assets are injected as early
- entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here
If I delete either one of them the parsing processes as expected. So i assume that the yaml parser does not like two comment lines after another.
Files
Updated by Sebastian Fischer about 5 years ago
The report is missing the path of the file /typo3/sysext/core/Configuration/Services.yaml
Updated by Frank Nägler about 5 years ago
- Status changed from New to Needs Feedback
I am not able to reproduce this issue. can you please add some more information about your system?
1) operating system?
2) PHP version?
3) composer mode or not?
4) a full stack trace would also be nice
Updated by Sebastian Fischer about 5 years ago
- File composer.json composer.json added
- File stacktrace.txt stacktrace.txt added
1) Ubuntu 18.04
2) PHP Version 7.2.22-1+ubuntu18.04.1+deb.sury.org+1
3) composer mode (composer.json attached)
4) stack trace is attached
Updated by Frank Nägler about 5 years ago
as mentioned in slack, please tell us also the symfony/yaml package version.
Updated by Frank Nägler about 5 years ago
- Status changed from Needs Feedback to Closed
issue closed, the issue exists in a dev version of symfony/yaml package.
For now no issue, the author confirmed this.
Updated by Richard Haeser almost 5 years ago
- File composer.lock composer.lock added
- File composer.json composer.json added
- File config.yaml config.yaml added
- Status changed from Closed to New
I have exactly the same issue when installing a fresh new install of TYPO3 v10.1
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException The file "/var/www/html/public/typo3/sysext/core/Configuration//Services.yaml" does not contain valid YAML: Unexpected characters near " # Core caches, cache.core and cache.assets are injected as early # entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here" at line 40 (near "# entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here").
Installation on ddev v1.11.2. See attached config
Updated by Jan Greth almost 5 years ago
+1
I have the same Setup and Problem like Richard.
Updated by Ralf Hübner almost 5 years ago
+1 Same issue.
Upgraded from 9.5.11 to 10.1
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
The file "D:/wamp64/www/typo3/v10/web/typo3/sysext/core/Configuration/\Services.yaml" does not contain valid YAML: Unexpected characters near " # Core caches, cache.core and cache.assets are injected as early # entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here" at line 40 (near "# entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here").
Set the two comments in one comment fixed the issue: # Core caches, cache.core and cache.assets are injected as early entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here
The Install-Tool is accessible, but nothing works:
Something went wrong
In Front-/Backend this error occurrs:
Fatal error: Class TYPO3\CMS\Core\Mail\FileSpool contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Mailer\Transport\TransportInterface::__toString) in D:\wamp64\www\typo3\v10\web\typo3\sysext\core\Classes\Mail\FileSpool.php on line 38
Updated by Benni Mack almost 5 years ago
- Status changed from New to Closed
Hey all,
we've fixed this with TYPO3 v10.2.