Site error on Drupal 9 on Acquia Dev Desktop

[Sat Sep 04 15:52:46.939952 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:39930] mod_fcgid: stderr: #21 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
[Sat Sep 04 15:52:46.939952 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:39930] mod_fcgid: stderr: #22 {main}
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: ArgumentCountError: Too few arguments to function Drupal\hello_world\Logger\MailLogger::__construct(), 0 passed in C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php on line 257 and exactly 2 expected in C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\modules\custom\hello_world\src\Logger\MailLogger.php on line 41 #0 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(257): Drupal\hello_world\Logger\MailLogger->__construct()
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #1 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'hello_world.log...')
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #2 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(432): Drupal\Component\DependencyInjection\Container->get('hello_world.log...', 1)
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #3 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(271): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #4 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'logger.factory')
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #5 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(432): Drupal\Component\DependencyInjection\Container->get('logger.factory', 1)
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #6 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(247): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #7 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'logger.channel....')
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #8 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(432): Drupal\Component\DependencyInjection\Container->get('logger.channel....', 1)
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #9 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(235): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #10 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'form_validator')
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #11 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(432): Drupal\Component\DependencyInjection\Container->get('form_validator', 1)
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #12 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(235): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #13 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal\Component\DependencyInjection\Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'form_builder')
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #14 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\lib\Drupal.php(599): Drupal\Component\DependencyInjection\Container->get('form_builder')
[Sat Sep 04 15:54:08.049773 2021] [fcgid:warn] [pid 8276:tid 4] [client 127.0.0.1:50615] mod_fcgid: stderr: #15 C:\Users\jeanp\Sites\devdesktop\drupal-9-project-9.0.3\core\modules\views\src\Plugin\views\exposed_form\ExposedFormPluginBase.php(134): Drupal::formBuilder()
  • The class MailLogger has two parameters that are fed in the module’s services.yml file:
hello_world.logger.mail_logger:
    class: Drupalhello_worldLoggerMailLogger
    arguments: ['@logger.log_message_parser', '@config.factory']
    tags:
      - { name: logger }
  • I don’t understand why the 2 parameters of MailLogger are considered missing ?
This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Site error on Drupal 9 on Acquia Dev Desktop

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.