When going to the mailchimp ecommerce admin page at /admin/config/services/mailchimp/ecommerce I get the following error:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "commerce_store.store_context". in Drupal\Component\DependencyInjection\Container->get() (line 157 of core/lib/Drupal/Component/DependencyInjection/Container.php).

I'm currently using the latest dev version of Drupal commerce

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sagesolutions created an issue. See original summary.

sagesolutions’s picture

Title: Missing commerce_store.store_context service » Mailchimp Ecommerce admin page broken
FileSize
1.93 KB

Well I got past this issue, but now I have another one..

ReflectionException: Method Drupal\Core\Config\ConfigFactory::buildForm() does not exist in ReflectionMethod->__construct() (line 110 of /var/www/html/drupal/vendor/symfony/http-kernel/Controller/ControllerResolver.php).

attached is the patch for the first part of this bug.

sagesolutions’s picture

Status: Active » Needs review

Well after clearing the cache, and applying the patch, I can see the Admin page!

/admin/config/services/mailchimp/ecommerce now loads!

Lukas von Blarer’s picture

Version: 8.x-1.1 » 8.x-1.x-dev
FileSize
1.78 KB

The patch didn't apply using composer so here is a re-roll

Lukas von Blarer’s picture

Status: Needs review » Needs work

After applying the patch I also get this error:

ReflectionException: Method Drupal\Core\Config\ConfigFactory::buildForm() does not exist in ReflectionMethod->__construct() (line 110 of /var/www/drupal/public_html/vendor/symfony/http-kernel/Controller/ControllerResolver.php).

Clearing caches didn't resolve the issue. What else have you done to it working?

Lukas von Blarer’s picture

Status: Needs work » Needs review
FileSize
3.42 KB

This patch fixes the issue for me.

Lukas von Blarer’s picture

I mixed up some code from another issue. This patch is only regarding the admin form.

Lukas von Blarer’s picture

Priority: Normal » Critical

This is actually critical.

ruscoe’s picture

Status: Needs review » Fixed

Thank you for the patch, Lukas. Sorry this took so long to get committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.