Problem/Motivation

I try to update Drupal from 11.3.13 to 14.4 This afternoon with composer. (composer update "drupal/core-*" --with-all-dependencies) .
When I can't run new version because the following error :
Le site Web a rencontré une erreur inattendue.

InvalidArgumentException: No converter has been registered for drupal.proxy_original_service.paramconverter.configentity_admin in Drupal\Core\ParamConverter\ParamConverterManager->getConverter() (line 37 of core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php).

I have a hosting installation (OVH).
Th site although slow works in 11.3.13 version.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

altbzh1 created an issue. See original summary.

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

After running composer update did you run database updates, either via update.php or drush?

See https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-com... for more information.

cilefen’s picture

Component: install system » other
Issue tags: -converter
altbzh1’s picture

Yes of course

dimapv’s picture

Same the problem.

cilefen’s picture

Title: problem when updating from 11.3.13 to 11.4.4 » InvalidArgumentException: No converter has been registered for drupal.proxy_original_service.paramconverter.configentity_admin
Status: Postponed (maintainer needs more info) » Active
Issue tags: +Needs steps to reproduce

Were there any errors whatsoever during the upgrade?

altbzh1’s picture

Yes, first time composer failed
I don't remember the error.

Now I have restored my installation which works without update of Drupal ...

T wait for the next update for trying next update ...

Thank you

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)

If someone provides the information needed to set up a Drupal site that reproduces this bug, we can work towards fixing it.

ajay@cybrain.co.in’s picture

The website encountered an unexpected error. Try again later.

InvalidArgumentException: No converter has been registered for drupal.proxy_original_service.paramconverter.configentity_admin in Drupal\Core\ParamConverter\ParamConverterManager->getConverter() (line 37 of core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php).
Drupal\Core\ParamConverter\ParamConverterManager->convert() (Line: 90)
Drupal\Core\Access\AccessManager->checkNamedRoute() (Line: 187)
Drupal\Core\Menu\DefaultMenuLinkTreeManipulators->menuLinkCheckAccess() (Line: 76)
Drupal\Core\Menu\DefaultMenuLinkTreeManipulators->checkAccess() (Line: 80)
Drupal\Core\Menu\DefaultMenuLinkTreeManipulators->checkAccess() (Line: 80)
Drupal\Core\Menu\DefaultMenuLinkTreeManipulators->checkAccess()
call_user_func() (Line: 114)
Drupal\Core\Menu\MenuLinkTree->transform() (Line: 123)
Drupal\toolbar\Controller\ToolbarController::preRenderGetRenderedSubtrees()
call_user_func_array() (Line: 107)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 914)

i am also facing same error i have clear all cache using Drush , manuall cache file and even database also

ajay@cybrain.co.in’s picture

public function getConverter($converter) {
if ($this->converters->has($converter)) {
return $this->converters->get($converter);
}

// Workaround: Drupal's lazy-service proxy renaming can leak the
// "drupal.proxy_original_service.X" ID into the locator's key map
// instead of the plain service ID. Retry under the plain ID.
$proxy_prefix = 'drupal.proxy_original_service.';
if (str_starts_with($converter, $proxy_prefix)) {
$plain_id = substr($converter, strlen($proxy_prefix));
if ($this->converters->has($plain_id)) {
return $this->converters->get($plain_id);
}
}

throw new \InvalidArgumentException(sprintf('No converter has been registered for %s', $converter));
}

i have replaced this / core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php for Quick fixes and worked ...

but it not permenet solution

longwave’s picture

The lazy: true flag was removed from paramconverter.configentity_admin in #3436295: ParamConverterManager lazy services are broken and should use a service locator so I don't understand why it is still being treated as lazy? Is your core.services.yml modified in some way, or do you have something altering or replacing this service? Can you reproduce this on a fresh install of 11.4?

bsnodgrass’s picture

FWIW - @altbzh1 Was this site perhaps on the Pantheon platform?

I ran into this same issue. I was given an incomplete procedure, which omitted two changes needed on a site I was upgrading on Pantheon.

composer require pantheon-systems/drupal-integrations:^11.2
composer require pantheon-upstreams/upstream-configuration

I got this exact same error once I applied their drupal-integrations:^11.2.

After I required the pantheon-upstreams/upstream-configuration, the error was corrected. The site was no longer white-screened, and caches were able to be cleared as expected.