Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException with charts 5.x

Created on 3 August 2020, over 4 years ago
Updated 17 April 2024, 7 months ago

Problem/Motivation

WSOD with
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "plugin.manager.charts_override". Did you mean one of these: "plugin.manager.charts", "plugin.manager.charts_type"? in Drupal\Component\DependencyInjection\Container->get() (line 153 of /var/www/artef/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

Install in the simplest way - follow instructions

Proposed resolution

Make it work please?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom masterperoo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States loopy1492

    Yeah, I'm getting this now too. It happened after upgrading from charts 3.x to 5.x, realizing that wasn't going to work, then downgrading to 4.x again. Charts work fine locally, but for some reason, pushing to remote and running updb/cim this wsod occurs.

    Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "plugin.manager.charts_override". Did you mean one of these: "plugin.manager.charts", "plugin.manager.charts_type", "plugin.manager.archiver"? in Drupal\Component\DependencyInjection\Container->get() (line 157 of /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php).

    Gonna try a new cex locally, then push it up and see if that helps.

  • πŸ‡ΊπŸ‡ΈUnited States loopy1492

    As it turns out, charts 4.x and 5.x do not have this service listed in charts.services.yml. I can't imagine why local is working without it, but I'll have to figure out which service to invoke to make this work.

  • πŸ‡ΊπŸ‡ΈUnited States loopy1492

    And that's it. Looking at the charts_api_example in charts 5.x, it seems like that entire process has changed significantly. That means that this module and my custom module will absolutely not work without adjusting the preprocess function to match the new example.

  • Status changed to Needs work over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States loopy1492
  • Status changed to Fixed 7 months ago
  • πŸ‡―πŸ‡΄Jordan omar alahmed Jordan
  • Status changed to Fixed 7 months ago
  • πŸ‡―πŸ‡΄Jordan omar alahmed Jordan
Production build 0.71.5 2024