Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291548

You have requested a non-existent service

$
0
0

In core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php, sometimes there is an empty item in the $this->_serviceIds array that causes the following PHP error.

Uncaught PHP Exception Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: "You have requested a non-existent service ""." core/lib/Drupal/Component/DependencyInjection/Container.php line 150

Here are steps to reproduce this issue using the payment module.

  1. Install Drupal 8.8.x.
  2. Install the payment module and dependencies.
  3. Add a Payment form field to a content type.
  4. Create a new node, adding at least 2 payment options and save the node.
  5. Edit the node and try to remove one of the payment options. When attempting to save, the error occurs and payment options cannot be deleted.

Viewing all articles
Browse latest Browse all 291548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>