Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I try to run the following Drupal Console command:
$ drupal webprofiler:benchmark "http://my-drupal8-site"
the following Symfony (fatal) error comes out ...
104/104 [============================] 100% Compute GIT hash...PHP Fatal error: Call to undefined method Symfony\Component\Yaml\Inline::isHash() in /Users/italo/Sites/ddd-forms-talk/vendor/symfony/yaml/Dumper.php on line 61
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/drupal:0
PHP 2. require() /usr/local/bin/drupal:10
PHP 3. require() phar:///usr/local/bin/drupal/bin/drupal:3
etc. … (omissis)
Comments
Comment #2
Eyal ShalevI don't think that this has any relation to the devel module.
I suggest to move it to the drupal console project page.
Comment #3
lussolucaweb profiler:benchmark is a Drupal Console command defined in Webprofiler so this is most probably a Devel issue.
Comment #4
Eyal ShalevI'm having the same issue without the above module.
For some unknown reason the symfony code in the local vendor directory is mixed up with the symfony code of the composer phar file.
I resolved this issue by adding drupal/composer to the dev dependencies of my project and used that executable instead.
Comment #5
clint.beacock CreditAttribution: clint.beacock as a volunteer and at Therefore commentedI'm having this same error. In my case, it's happening when I run drupal site:mode dev
In my case, I think it's a core version issue of some sort. I just upgraded to 8.1 from 8.0, and this is when it started happening.
Comment #6
lussolucaI cannot reproduce this error, but at this point I don't think that this is caused by web profiler or devel