Problem/Motivation
When attempting to enable the markdown module, the markdown module errors out. The error message is:
Uncaught PHP Exception Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: "You have requested a non-existent service "logger.channel.markdown". Did you mean one of these: "logger.channel.form", "logger.channel.image", "logger.channel.cron"?" at /srv/sites/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php line 153
This is using composer to install commonmark and the markdown module.
drupal/markdown: 2.0.0-rc2
league/commonmark: 1.5.7
drupal/core: 8.9.13
It looks like this problem was previously reported, but was resolved. Is there a new regression with the newer versions?
Steps to reproduce
* Install commonmark and the markdown module via composer.
* Attempt to enable the markdown module
Issue fork markdown-3202876
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
inghamn commentedComment #3
inghamn commentedComment #4
shin.cho commentedsame problem
Comment #5
jaydip makawana commentedfacing the same problem
Comment #6
jaydip makawana commentedComment #7
movemaine commentedFacing the same issue:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "logger.channel.markdown". Did you mean one of these: "logger.channel.form", "logger.channel.image", "logger.channel.cron"? in Drupal\Component\DependencyInjection\Container->get() (line 153 of /apps/myapps/html/test/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php).I get the error whether I install through the GUI or composer.
Comment #8
movemaine commentedTo add more detail (but unsure if related), if I try and install through composer I get the following error:
But commonmark is installed:
league/commonmark 1.5.8 Highly-extensible PHP Markdown parser which f...And my minimum stability is `dev`
Comment #9
finabluma commentedHi, there! I can not install the module ... I am receiving the following error ...I
Comment #10
gloomcheng commentedFacing the same issue
Comment #11
grevil commentedOk I found at least a workaround and perhaps a good start to resolve the issue:
The problem is within markdown.install file. If you comment out the whole file, you can install the plugin. I guess the "logger.channel.markdown" is used in install, but is not yet "bootstrapped", but I'm not deep enough in that process.
Does anyone have an idea and can create an issue fork with a solution?
Comment #12
adrianm6254 commentedAny movement on this?
I get the same issue:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "logger.channel.markdown". Did you mean one of these: "logger.channel.image", "logger.channel.cron", "logger.channel.form", [error]
"logger.channel.webform"? in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php:153
Comment #13
eelkeblokThe current merge request for #3103679: [PP-1][markdown] Drupal 9 Support contains this commit: https://git.drupalcode.org/project/markdown/-/merge_requests/11/diffs?co.... Seems like that is an issue in and of itself, and not exclusive to Drupal 9.
Comment #15
eelkeblokI created a merge request containing basically the change from the mentioned commit, except that was built on a change that replaces some logic in the HttpClientTrait that I don't think we need here. Did not actually test this.
If this ends up getting merged, please credit mradcliffe (Matthew Radcliffe ) since they authored that commit.
Comment #19
joelpittetComment #20
joelpittetComment #22
joelpittetThanks @mradcliffe and @elkeblok, this was added in 2.x and 3.x (through the other issue)