- Issue created by @sachbearbeiter
- 🇩🇪Germany sachbearbeiter
And in the form i get:
Warning: Undefined property: Drupal\animated_gif\Plugin\Field\FieldFormatter\AnimatedGifImageUrlFormatter::$fileUrlGenerator in Drupal\animated_gif\Plugin\Field\FieldFormatter\AnimatedGifImageUrlFormatter->viewElements() (line 43 of modules/contrib/animated_gif/src/Plugin/Field/FieldFormatter/AnimatedGifImageUrlFormatter.php). - Assigned to himanshu_jhaloya
- Merge request !11Issue #3422958: fixed Error: Call to a member function transformRelative() → (Open) created by himanshu_jhaloya
- Issue was unassigned.
- Status changed to Needs review
9 months ago 5:16am 22 February 2024 - Status changed to Needs work
9 months ago 3:31pm 22 February 2024 - 🇫🇷France Grimreaper France 🇫🇷
Hi,
Thanks for the bug report and MR.
This made me think about https://git.drupalcode.org/project/file_extractor/-/blob/4.1.x/src/Form/....
I think when form have ajax on some elements or using subForm then there are cases when services are not properly instanciated.
file_url_generator is a core service so I guess it should always be present.
I would prefer a solution like in File Extractor please, with a getter method.