After updating the webfrom module from "8.x-5.0-beta5" to "8.x-5.0-beta7" (screenshot attached) I got the following error message:
TypeError: Argument 1 passed to Drupal\webform\WebformRequest::__construct() must be an instance of Symfony\Component\HttpFoundation\RequestStack, instance of Drupal\Core\Routing\RouteProv
And the website was completely broken. Unexpected error on every single page i was trying to open.
the drush command:
drush watchdog-list
helped me trace the error to the webform module.
After uninstalling the "webform" module, the site was working without any problems and the annoying "Unexpected error" gone away.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2017-02-28 at 16.23.26.png | 589.42 KB | ANDiTKO |
Comments
Comment #2
ANDiTKO CreditAttribution: ANDiTKO at Netstudio commentedComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedDid you clear the cache after the update?
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedSo the cache would be cleared after the drush updb.
I think your WebformRequest class is literally out of sync. It should look like http://cgit.drupalcode.org/webform/tree/src/WebformRequest.php
Comment #5
ANDiTKO CreditAttribution: ANDiTKO at Netstudio commentedYes. Drush cleared the cache (one line before the end). See the attached screenshot.
All I did was install webform on my website about 1-2 months ago. And then I created a simple webform, just to see what are the differences in Drupal 8.
Haven't done anything else since then.
Try installing 8.x-5.0-beta5 then make a simple webform. After that perform the update.
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedDoes a clean install with the webform module completely deleted work?
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented