When I click on the Export Nodes tab in the Content page I get this error:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "entity.manager". in Drupal\Component\DependencyInjection\Container->get() (line 151 of /home/ftpuser/RetamaD83/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

This seems to be common.

Comments

brussam created an issue. See original summary.

mmjvb’s picture

docker@cli:/var/www/web/modules/contrib/node_export$ grep -rn entity\.manager .
./src/Form/MultipleNodeExportForm.php:25:    $contentTypes = \Drupal::service('entity.manager')->getStorage('node_type')->loadMultiple();
./src/NodeImport.php:48:    $contentTypes = \Drupal::service('entity.manager')
docker@cli:/var/www/web/modules/contrib/node_export$

Try replacing entity.manager with entity_type.manager

karishmaamin’s picture

Status: Active » Needs work
StatusFileSize
new1.18 KB

Here is the patch which replaces entity.manager with entity_type.manager, Please review

karishmaamin’s picture

Status: Needs work » Needs review
rishabhthakur’s picture

StatusFileSize
new13.25 KB
new14.91 KB

I have checked #3 patch its work fine with Drupalv9.0 & 9.1
I have modify patch file with fixing coding standards too.

rajeevchoudhary’s picture

I have also checked #3 patch its work fine with Drupalv9.0 & 9.1
its working fine

rajeevchoudhary’s picture

Status: Needs review » Fixed
mmjvb’s picture

Status: Fixed » Reviewed & tested by the community

The proper sequence is to set it to RTBC, which should get the attention of a maintainer. Who will apply the patch via a commit when in agreement. And set this issue to Fixed.

  • rishabhthakur authored aa5c918 on 8.x-1.x
    Issue #3156474 by rishabhthakur, karishmaamin: Drupal 9.0.1 issue
    
gaurav.kapoor’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, everyone for working on this.

Status: Fixed » Closed (fixed)

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