Manual update (without composer/drush) breaks site and causes error

I wanted to update webform to 8.x-5.0-beta19 from the backend /admin/modules/update

After starting update.php the the site is broken and the following error shows up:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\webform\WebformTokenManager::__construct() must implement interface Drupal\Core\Config\ConfigFactoryInterface, instance of Drupal\Core\Extension\ModuleHandler given, called in /www/htdocs/…/core/lib/Drupal/Component/DependencyInjection/Container.php on line 272 in Drupal\webform\WebformTokenManager->__construct() (line 46 of modules/webform/src/WebformTokenManager.php).

Proposed workaround

Roll back the code to 8.x-5.0-beta16 solves the problem for me.

Comments

marco.b created an issue. See original summary.

marco.b’s picture

Title: {Your title should be descriptive and concise} » update from 8.x-5.0-beta16 to 8.x-5.0-beta19 fails
Issue tags: -update from 8.x-5.0-beta16 to 8.x-5.0-beta19 fails
jrockowitz’s picture

You might need to clear the cache before running the updates. You could also trying using Drush to run your updates.

jrockowitz’s picture