Bug #89342
closed
InvalidArgumentException while parsing Services.yaml
Added by Sebastian Fischer about 5 years ago.
Updated almost 5 years ago.
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
The report is missing the path of the file /typo3/sysext/core/Configuration/Services.yaml
- Description updated (diff)
- 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
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
as mentioned in slack, please tell us also the symfony/yaml package version.
- 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.
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
+1
I have the same Setup and Problem like Richard.
+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
- Status changed from New to Closed
Hey all,
we've fixed this with TYPO3 v10.2.
Also available in: Atom
PDF