0

A Drupal 8 site hosted on Pantheon gives this error message after updating Webform from 8.x-5.0-beta15 to 8.x-5.0-rc1:

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 /srv/bindings/261ff5c4a9e04814be06a20de36ae33a/code/core/lib/Drupal/Component/DependencyInjection/Container.php on line 266 in Drupal\webform\WebformTokenManager->__construct() (line 46 of modules/webform/src/WebformTokenManager.php).

The site is completely down at that point and we have to revert to a backup. Any suggestions?

1
  • 1
    Did you flush the caches? Dec 31, 2017 at 0:01

1 Answer 1

1

Yes, flushing the cache via Drush should solve the problem.

If you can't use Drush, you must put your site in maintenance mode, set $update_free_access=TRUE, and run the pending updates via /update.php.

Also see

http://www.zymphonies.com/blog/update-drupal8-core https://www.drupal.org/project/webform/issues/2907960

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.