- Issue created by @besek
- ๐ง๐ทBrazil carolpettirossi Campinas - SP
This also happens when I try to create a new Block Type via Layout Builder.
I imagine the code introduced by 3436816 should not be executed on AddBlockForm. Not sure.
- ๐ฎ๐ณIndia dev2.addweb
nilesh.addweb โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia dev2.addweb
I've also got the same error and after resolving that i got another error
Error: Call to undefined method Drupal\views\Form\ViewsForm::getEntity() in field_formatter_class_field_widget_complete_form_alter() (line 142 of /var/www/html/web/modules/contrib/field_formatter_class/field_formatter_class.module).
so I have solve both in the MR !10.
Please review. - ๐น๐ญThailand AlfTheCat
Thanks for the patch, in my case it fixed a WSOD on views bulk operations. It' now working again.
- Assigned to geek-merlin
- Status changed to Needs work
4 months ago 3:21pm 28 November 2024 - ๐ฉ๐ชGermany geek-merlin Freiburg, Germany
Ran into this too. And must be solved more robust.
- ๐ฉ๐ชGermany geek-merlin Freiburg, Germany
geek-merlin โ changed the visibility of the branch 3473891-undefined-method-getEntity to hidden.
- ๐ฉ๐ชGermany geek-merlin Freiburg, Germany
geek-merlin โ changed the visibility of the branch 3473891-undefined-method-getEntity to active.
- ๐ฉ๐ชGermany geek-merlin Freiburg, Germany
Simple and more robust patch flying in.
Patch URL: https://git.drupalcode.org/project/field_formatter_class/-/commit/e17b4c...
Patch applies cleanly on my site and fixes the issue for me.
- Issue was unassigned.
- Status changed to RTBC
2 months ago 4:24pm 27 January 2025 - ๐ฌ๐งUnited Kingdom niklp Nottingham
Patch in #11 works perfect for me. Seems RTBC.
- ๐บ๐ธUnited States joegl
I had same issue as #7 with Views Bulk Edit. Pasting the exact error here for google to index and hopefully help future users.
Error: Call to undefined method Drupal\views_bulk_operations\Form\ConfigureAction::getEntity() in field_formatter_class_field_widget_complete_form_alter() (line 142 of modules/contrib/field_formatter_class/field_formatter_class.module).
We used the "Overwrite Label" field on the settings for the On/Off checkbox widget in a content type form display, which added a dependency and wrote to the third_party_settings for the field_formatter_class field, even though we were not using it.
I also cut a new patch from the merge request, although geek-merlin's patch may end up being the correct way without the use of the additional conditionals.