Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
when you go on admin/structure/types/manage/product/subpages/add page, you got that error on the top of the page.
To reproduce
- Install Vanilla Drupal 7
- Install Entity Reference
- Install node subpages
- Try to add a new subpage to one of your content type
Comment | File | Size | Author |
---|---|---|---|
#1 | entityreference_2314339.patch | 243 bytes | dtamajon |
Comments
Comment #1
dtamajon CreditAttribution: dtamajon commentedI found the same problem, and it is given because $element is not set. I have added a simple check to avoid returning $element if not set.
Comment #2
dtamajon CreditAttribution: dtamajon commentedThis problem is an Entity Reference module bug. I have created the new issue #2495405: Notice : Undefined variable: element in entityreference_field_formatter_settings_form() (line 1141 in /sites/all/modules/entityreference/entityreference.module)..
Comment #3
dtamajon CreditAttribution: dtamajon commented