I made Update from Drupal 8 to 9.0.8
Everything seemed to be in order.
I can use a view to edit fields in frontend with "Content: Form field: Text" field
But in the moment I change something in this view in backend, I can't save the view.
Error is:
The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::getEntityTypeManager() in Drupal\views_entity_form_field\Plugin\views\field\EntityFormField->getEntityTranslationRenderer() (line 52 of core\modules\views\src\Entity\Render\EntityTranslationRenderTrait.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | views_entity_form_field-entityManager_changed_to_entityTypeManager-3183476-18.patch | 3.83 KB | miedward |
Issue fork views_entity_form_field-3183476
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
lissy commentedComment #3
lissy commentedComment #4
lissy commentedComment #5
lissy commentedI have created a new installation with only this module, where I can reproduce the error:
Content: Form field: Body
Error: Call to undefined method Drupal\views_entity_form_field\Plugin\views\field\EntityFormField::getEntityTypeManager() in Drupal\views_entity_form_field\Plugin\views\field\EntityFormField->getEntityTranslationRenderer() (line 52 of C:\wwwroot\dummy\web\core\modules\views\src\Entity\Render\EntityTranslationRenderTrait.php)
Comment #7
jcandan commentedSeems this bug was introduced by Drupal 9 deprecated code report.
Comment #9
jcandan commentedComment #10
jcandan commentedComment #11
jcandan commentedComment #12
oo0shiny commentedI've tested this on a Drupal 9.0.7 view where I was having this same problem (same error on saving the view). Applied these changes as a patch and the view now saves without error. Moving to RTBC.
Comment #13
lissy commentedThanks oo0shiny,
Where can I find the patch?
Comment #14
ledjerdemain commentedHey Lissy,
Go got to go to this file. I manually changed the lines. But It guess it could be made into patch. (And It worked BTW)
https://git.drupalcode.org/project/views_entity_form_field/-/commit/03e9...
Comment #15
cprofessionals commented#14 Resolved the issue for me! Thank you
Comment #16
miedward commentedThis patch should replicate the above snip if you don't want to use dev branch
Comment #17
miedward commentedComment #18
miedward commentedThis patch should replicate the checkin above but with fewer vim errors
Comment #19
lissy commentedThankyou very much, miedward.
It's such a helpfull module.
Comment #21
grathbone commentedHey, everyone. This has been merged in and released under Beta 9.
Wanted to say thanks to everyone for testing it. I chose to merge in the PR instead of doing a manual patch and commit and in doing so it seems I lost the ability to give credit via commit message, so it didn't track credit. I did a blank file change to try to give credit afterward.