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
Comment #2
marco.b CreditAttribution: marco.b commentedComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYou might need to clear the cache before running the updates. You could also trying using Drush to run your updates.
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@see #2907960: Upgrade from beta16 to beta17 result in an 'unrecoverable error'