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.
Didn't actually test if it fails in all cases but it certainly does for updating via drush:
exception 'Drupal\Core\Extension\InfoParserException' with message 'Unable to parse modules/metatag/metatag_open_graph/metatag_open_graph.info.yml[error]
A colon cannot be used in an unquoted mapping value at line 1 (near "name: Metatag: Open Graph").' in
/var/www/<hidden>/core/lib/Drupal/Core/Extension/InfoParserDynamic.php:30
Stack trace:
#0 /var/www/<hidden>/core/lib/Drupal/Core/Extension/InfoParser.php(27):
Drupal\Core\Extension\InfoParserDynamic->parse('modules/metatag...')
#1 /var/www/<hidden>/core/modules/system/system.module(962): Drupal\Core\Extension\InfoParser->parse('modules/metatag...')
#2 /var/www/<hidden>/core/modules/system/system.module(1039): _system_rebuild_module_data()
#3 /root/.composer/vendor/drush/drush/commands/core/drupal/environment.inc(25): system_rebuild_module_data()
#4 /root/.composer/vendor/drush/drush/includes/environment.inc(733): drush_get_modules(true)
#5 /root/.composer/vendor/drush/drush/commands/pm/updatestatus.pm.inc(19): drush_get_extensions()
#6 [internal function]: drush_pm_updatestatus()
#7 /root/.composer/vendor/drush/drush/includes/command.inc(366): call_user_func_array('drush_pm_update...', Array)
#8 /root/.composer/vendor/drush/drush/includes/command.inc(217): _drush_invoke_hooks(Array, Array)
#9 [internal function]: drush_command()
#10 /root/.composer/vendor/drush/drush/includes/command.inc(185): call_user_func_array('drush_command', Array)
#11 /root/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#12 /root/.composer/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#13 /root/.composer/vendor/drush/drush/drush.php(12): drush_main()
#14 {main}
This is due to the use of a colon in the module name. With the D8 YAML formated info files any text string with a colon has to be quoted.
Comment | File | Size | Author |
---|---|---|---|
#2 | info_error_prevents-2675208-2.patch | 408 bytes | NickDickinsonWilde |
Comments
Comment #2
NickDickinsonWildeComment #3
DamienMcKennaThanks, this was fixed in #2563623: Add the main OpenGraph meta tags to 8.x-1.x.